diff --git a/TestFramework.project b/TestFramework.project index bab697a..879283e 100644 --- a/TestFramework.project +++ b/TestFramework.project @@ -591,7 +591,7 @@ mkdir -p coverage && cd coverage find .. -name '*.gcda' | xargs gcov -abcfmu find . -type f -not -name 'Test*.gcov' | xargs rm cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -Wno-dev -cppcheck --project=compile_commands.json -itest -idemo --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction +cppcheck --project=compile_commands.json --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --std=c++11 --inline-suppr cpack --config CPackConfig.cmake cpack --config CPackSourceConfig.cmake cpack -G DEB diff --git a/include/internal/TestCPPExceptions.h b/include/internal/TestCPPExceptions.h index ec4bb64..4337f25 100644 --- a/include/internal/TestCPPExceptions.h +++ b/include/internal/TestCPPExceptions.h @@ -60,13 +60,13 @@ namespace TestCPP { * Construct an exception of this type with a string literal for * its failure message. */ - TestCPPException (const char * msg); + explicit TestCPPException (const char * msg); /** * Construct an exception of this type with a string object for * its failure message. */ - TestCPPException (string&& msg); + explicit TestCPPException (string&& msg); }; /** @@ -89,13 +89,13 @@ namespace TestCPP { * Construct an exception of this type with a string literal for * its failure message. */ - TestFailedException (const char * msg); + explicit TestFailedException (const char * msg); /** * Construct an exception of this type with a string literal for * its failure message. */ - TestFailedException (string&& msg); + explicit TestFailedException (string&& msg); }; } diff --git a/include/internal/TestCPPUtil.h b/include/internal/TestCPPUtil.h index 045def4..1c97f34 100644 --- a/include/internal/TestCPPUtil.h +++ b/include/internal/TestCPPUtil.h @@ -65,6 +65,11 @@ namespace TestCPP { * @return The TestObjName, where it is verified that the name * used to construct it was not null. */ + // + // This is intended to be used for implicit conversions and copy + // initialization. + // + // cppcheck-suppress noExplicitConstructor TestObjName (const char* name); /**