2024-03-26 20:35 ftp://ftp.de.debian.org/debian/pool/main/d/doctest/doctest_2.4.11.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 61552d0 (2024-03-26 14:25:53 +0100) count: 107 107 elapsed-time: 4.1 86.7 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 3.84362s (avg. 3.84362s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 3.29414s (avg. 0.823535s - 4 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.30258s (avg. 0.075645s - 4 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, settings): 0.094802s (avg. 0.0237005s - 4 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.048955s (avg. 0.048955s - 1 result(s)) Overall time: 4.03052s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 86.2753s (avg. 86.2753s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 85.55s (avg. 21.3875s - 4 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.410304s (avg. 0.102576s - 4 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 0.191597s (avg. 0.0383194s - 5 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.056816s (avg. 0.056816s - 1 result(s)) Overall time: 86.4919s head results: doctest-2.4.11/examples/all_features/alternative_macros.cpp:4:16: style: Same expression on both sides of '=='. [duplicateExpression] doctest-2.4.11/examples/all_features/assertion_macros.cpp:217:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/all_features/concurrency.cpp:47:27: style: Same expression on both sides of '=='. [duplicateExpression] doctest-2.4.11/examples/all_features/decomposition.cpp:54:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/all_features/double_stringification.cpp:15:16: style: Condition '&foo!=nullptr' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/all_features/coverage_maxout.cpp:120:73: warning: Conversion of string literal "const char*!" to bool always evaluates to true. [incorrectStringBooleanError] doctest-2.4.11/examples/all_features/namespace1.cpp:17:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_GCC_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/all_features/namespace8.cpp:30:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_GCC_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/all_features/namespace7.cpp:27:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_GCC_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/all_features/namespace9.cpp:17:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_GCC_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/all_features/reporters_and_listeners.cpp:10:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_GCC_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/all_features/no_failures.cpp:6:13: style: Same expression on both sides of '=='. [duplicateExpression] doctest-2.4.11/examples/all_features/subcases.cpp:162:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_MSVC_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/combining_the_same_tests_built_differently_in_multiple_shared_objects/foo.h:5:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_CLANG_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/doctest/parts/doctest_fwd.h:520:1: debug: Failed to parse 'typedef decltype ( nullptr ) nullptr_t ;'. The checking continues anyway. [simplifyTypedef] doctest-2.4.11/examples/all_features/test_cases_and_suites.cpp:11:17: style: Condition 'a==7' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/all_features/test_cases_and_suites.cpp:6:13: note: Assignment 'a=5', assigned value is 5 doctest-2.4.11/examples/all_features/test_cases_and_suites.cpp:7:5: note: Compound assignment '+=', assigned value is 7 doctest-2.4.11/examples/all_features/test_cases_and_suites.cpp:11:17: note: Condition 'a==7' is always true doctest-2.4.11/doctest/parts/doctest_fwd.h:1609:5: debug: Failed to parse 'using funcType = void ( * ) ( ) ;'. The checking continues anyway. [simplifyUsing] doctest-2.4.11/doctest/parts/doctest_fwd.h:1957:5: debug: Failed to parse 'using assert_handler = void ( * ) ( const AssertData & ) ;'. The checking continues anyway. [simplifyUsing] doctest-2.4.11/doctest/parts/doctest_fwd.h:2096:5: debug: Failed to parse 'using reporterCreatorFunc = IReporter * ( * ) ( const ContextOptions & ) ;'. The checking continues anyway. [simplifyUsing] doctest-2.4.11/examples/all_features/stringification.cpp:113:31: error: Returning object that will be invalid when returning. [returnDanglingLifetime] doctest-2.4.11/examples/all_features/stringification.cpp:113:31: note: Pointer to container is created here. doctest-2.4.11/examples/all_features/stringification.cpp:113:31: note: Returning object that will be invalid when returning. doctest-2.4.11/examples/all_features/stringification.cpp:48:29: style: Condition 'chs==nullptr' is always false [knownConditionTrueFalse] doctest-2.4.11/examples/all_features/stringification.cpp:52:31: style: Condition 'ints==nullptr' is always false [knownConditionTrueFalse] doctest-2.4.11/examples/all_features/stringification.cpp:260:13: style: The comparison 'a == b' is always true because 'a' and 'b' represent the same value. [knownConditionTrueFalse] doctest-2.4.11/examples/all_features/stringification.cpp:258:14: note: 'b' is assigned value 'a' here. doctest-2.4.11/examples/all_features/stringification.cpp:260:13: note: The comparison 'a == b' is always true because 'a' and 'b' represent the same value. doctest-2.4.11/examples/all_features/stringification.cpp:263:12: style: Variable 'functionPointer' can be declared as pointer to const [constVariablePointer] doctest-2.4.11/examples/executable_dll_and_plugin/main.cpp:6:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END is a macro then please configure it. [unknownMacro] doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:17:24: style: Condition 'factorial(0)==1' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:17:20: note: Calling function 'factorial' returns 1 doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:17:24: note: Condition 'factorial(0)==1' is always true doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:18:24: style: Condition 'factorial(1)==1' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:18:20: note: Calling function 'factorial' returns 1 doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:18:24: note: Condition 'factorial(1)==1' is always true doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:19:24: style: Condition 'factorial(2)==2' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:19:20: note: Calling function 'factorial' returns 2 doctest-2.4.11/examples/installed_doctest_cmake/dll/dll.cpp:19:24: note: Condition 'factorial(2)==2' is always true doctest-2.4.11/doctest/parts/doctest.cpp:926:43: debug: Failed to instantiate template "toString". The checking continues anyway. [templateInstantiation] doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:24:21: style: Condition 'square(2)==4' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:24:17: note: Calling function 'square' returns 4 doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:24:21: note: Condition 'square(2)==4' is always true doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:25:21: style: Condition 'square(4)==16' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:25:17: note: Calling function 'square' returns 16 doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:25:21: note: Condition 'square(4)==16' is always true doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:26:21: style: Condition 'square(5)==25' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:26:17: note: Calling function 'square' returns 25 doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:26:21: note: Condition 'square(5)==25' is always true doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:27:21: style: Condition 'square(8)==64' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:27:17: note: Calling function 'square' returns 64 doctest-2.4.11/examples/installed_doctest_cmake/dll/main.cpp:27:21: note: Condition 'square(8)==64' is always true doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:24:24: style: Condition 'factorial(0)==1' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:24:20: note: Calling function 'factorial' returns 1 doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:24:24: note: Condition 'factorial(0)==1' is always true doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:25:24: style: Condition 'factorial(1)==1' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:25:20: note: Calling function 'factorial' returns 1 doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:25:24: note: Condition 'factorial(1)==1' is always true doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:26:24: style: Condition 'factorial(2)==2' is always true [knownConditionTrueFalse] doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:26:20: note: Calling function 'factorial' returns 2 doctest-2.4.11/examples/installed_doctest_cmake/executable/main.cpp:26:24: note: Condition 'factorial(2)==2' is always true doctest-2.4.11/scripts/hello_world.cpp:9:19: style: Condition 'fact(0)==1' is always false [knownConditionTrueFalse] doctest-2.4.11/scripts/hello_world.cpp:9:15: note: Calling function 'fact' returns 0 doctest-2.4.11/scripts/hello_world.cpp:9:19: note: Condition 'fact(0)==1' is always false doctest-2.4.11/scripts/hello_world.cpp:10:19: style: Condition 'fact(1)==1' is always true [knownConditionTrueFalse] doctest-2.4.11/scripts/hello_world.cpp:10:15: note: Calling function 'fact' returns 1 doctest-2.4.11/scripts/hello_world.cpp:10:19: note: Condition 'fact(1)==1' is always true doctest-2.4.11/scripts/hello_world.cpp:11:19: style: Condition 'fact(2)==2' is always true [knownConditionTrueFalse] doctest-2.4.11/scripts/hello_world.cpp:11:15: note: Calling function 'fact' returns 2 doctest-2.4.11/scripts/hello_world.cpp:11:19: note: Condition 'fact(2)==2' is always true doctest-2.4.11/scripts/hello_world.cpp:12:19: style: Condition 'fact(3)==6' is always true [knownConditionTrueFalse] doctest-2.4.11/scripts/hello_world.cpp:12:15: note: Calling function 'fact' returns 6 doctest-2.4.11/scripts/hello_world.cpp:12:19: note: Condition 'fact(3)==6' is always true doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:16:5: style: Struct 'Translator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:18:10: style: The function 'translate' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:11:18: note: Virtual function in base class doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:18:10: note: Function in derived class doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:21:11: style: Exception should be caught by reference. [catchExceptionByValue] doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:64:9: error: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object [rethrowNoCurrentException] doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:67:21: style: Variable 'msg' can be declared as reference to const [constVariableReference] doctest-2.4.11/scripts/how_stuff_works/how_exception_translators_work.cpp:78:1: style: Parameter 'e' can be declared as reference to const [constParameterReference] doctest-2.4.11/scripts/how_stuff_works/testing_crash_scenarios.cpp:15:1: error: There is an unknown macro here somewhere. Configuration is required. If DOCTEST_GCC_SUPPRESS_WARNING is a macro then please configure it. [unknownMacro] doctest-2.4.11/doctest/parts/doctest_fwd.h:521:33: debug: Scope::checkVariable found variable 'long' with varid 0. [varid0] doctest-2.4.11/doctest/parts/doctest_fwd.h:1397:9: warning: Member variable 'Result::m_passed' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:2880:9: warning: Member variable 'ConsoleReporter::hasLoggedCurrentTestStart' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:2880:9: warning: Member variable 'ConsoleReporter::currentSubcaseLevel' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:2880:9: warning: Member variable 'ConsoleReporter::tc' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:2884:9: warning: Member variable 'ConsoleReporter::hasLoggedCurrentTestStart' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:2884:9: warning: Member variable 'ConsoleReporter::currentSubcaseLevel' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:2884:9: warning: Member variable 'ConsoleReporter::tc' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:3699:5: warning: Member variable 'DiscardOStream::discardBuf' is not initialized in the constructor. [uninitMemberVar] doctest-2.4.11/doctest/parts/doctest.cpp:3683:5: style: The class 'Anonymous0' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:349:5: style: The class 'MultiLaneAtomic < int >' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:1219:9: performance: Variable 'm_type' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] doctest-2.4.11/doctest/parts/doctest_fwd.h:851:18: style:inconclusive: Technically the member function 'doctest::AssertData::StringContains::check' can be const. [functionConst] doctest-2.4.11/doctest/parts/doctest_fwd.h:1505:26: style:inconclusive: Technically the member function 'doctest::detail::Expression_lhs::operatorResult' can be const. [functionConst] doctest-2.4.11/doctest/parts/doctest_fwd.h:1527:9: debug: CheckClass::checkConst found unlinked template argument list 'doctest::detail::declval()()'. [debug] doctest-2.4.11/doctest/parts/doctest_fwd.h:1902:14: style:inconclusive: Technically the member function 'doctest::detail::MessageBuilder::react' can be const. [functionConst] doctest-2.4.11/doctest/parts/doctest.cpp:1931:26: note: Technically the member function 'doctest::detail::MessageBuilder::react' can be const. doctest-2.4.11/doctest/parts/doctest_fwd.h:1902:14: note: Technically the member function 'doctest::detail::MessageBuilder::react' can be const. doctest-2.4.11/doctest/parts/doctest_fwd.h:1986:10: style:inconclusive: Technically the member function 'doctest::Context::shouldExit' can be const. [functionConst] doctest-2.4.11/doctest/parts/doctest.cpp:3672:15: note: Technically the member function 'doctest::Context::shouldExit' can be const. doctest-2.4.11/doctest/parts/doctest_fwd.h:1986:10: note: Technically the member function 'doctest::Context::shouldExit' can be const. doctest-2.4.11/doctest/parts/doctest_fwd.h:1988:10: style:inconclusive: Technically the member function 'doctest::Context::setAsDefaultForAssertsOutOfTestCases' can be const. [functionConst] doctest-2.4.11/doctest/parts/doctest.cpp:3674:15: note: Technically the member function 'doctest::Context::setAsDefaultForAssertsOutOfTestCases' can be const. doctest-2.4.11/doctest/parts/doctest_fwd.h:1988:10: note: Technically the member function 'doctest::Context::setAsDefaultForAssertsOutOfTestCases' can be const. doctest-2.4.11/doctest/parts/doctest.cpp:2838:14: performance:inconclusive: Technically the member function 'doctest::::JUnitReporter::log_contexts' can be static (but you may consider moving to unnamed namespace). [functionStatic] doctest-2.4.11/doctest/parts/doctest.cpp:2898:21: performance:inconclusive: Technically the member function 'doctest::::ConsoleReporter::getSuccessOrFailString' can be static (but you may consider moving to unnamed namespace). [functionStatic] doctest-2.4.11/doctest/parts/doctest.cpp:2905:21: performance:inconclusive: Technically the member function 'doctest::::ConsoleReporter::getSuccessOrFailColor' can be static (but you may consider moving to unnamed namespace). [functionStatic] doctest-2.4.11/doctest/parts/doctest_fwd.h:848:13: style: Class 'StringContains' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:849:13: style: Class 'StringContains' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1208:5: style: Struct 'Approx' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1398:9: style: Struct 'Result' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1571:9: style: Struct 'ExpressionDecomposer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1921:1: style: Struct 'test_suite' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1922:1: style: Struct 'description' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1923:1: style: Struct 'skip' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1924:1: style: Struct 'no_breaks' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1925:1: style: Struct 'no_output' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1926:1: style: Struct 'timeout' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1927:1: style: Struct 'may_fail' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1928:1: style: Struct 'should_fail' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1929:1: style: Struct 'expected_failures' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:1950:9: style: Class 'XmlEncode' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:1986:9: style: Class 'XmlWriter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:1966:13: style: Class 'ScopedElement' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:2334:9: style: Struct 'XmlReporter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:2708:9: style: Struct 'JUnitReporter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:2880:9: style: Struct 'ConsoleReporter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1291:5: style: Struct 'IsNaN < float >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1291:5: style: Struct 'IsNaN < double >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest_fwd.h:1291:5: style: Struct 'IsNaN < long double >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] doctest-2.4.11/doctest/parts/doctest.cpp:237:16: style: Condition '*ptr' is always true [knownConditionTrueFalse] doctest-2.4.11/doctest/parts/doctest.cpp:234:21: note: Assignment 'x=1', assigned value is 1 doctest-2.4.11/doctest/parts/doctest.cpp:237:16: note: Condition '*ptr' is always true doctest-2.4.11/doctest/parts/doctest.cpp:714:34: style:inconclusive: Function 'Contains' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] doctest-2.4.11/doctest/parts/doctest_fwd.h:673:37: note: Function 'Contains' argument 1 names different: declaration 'string' definition 'str'. doctest-2.4.11/doctest/parts/doctest.cpp:714:34: note: Function 'Contains' argument 1 names different: declaration 'string' definition 'str'. doctest-2.4.11/doctest/parts/doctest.cpp:3981:53: style:inconclusive: Function 'registerReporterImpl' argument 2 names different: declaration 'prio' definition 'priority'. [funcArgNamesDifferent] doctest-2.4.11/doctest/parts/doctest_fwd.h:2098:71: note: Function 'registerReporterImpl' argument 2 names different: declaration 'prio' definition 'priority'. doctest-2.4.11/doctest/parts/doctest.cpp:3981:53: note: Function 'registerReporterImpl' argument 2 names different: declaration 'prio' definition 'priority'. doctest-2.4.11/doctest/parts/doctest.cpp:850:24: performance: Function parameter 'in' should be passed by const reference. [passedByValue] doctest-2.4.11/doctest/parts/doctest.cpp:1713:29: style: Variable 'def' can be declared as reference to const [constVariableReference] doctest-2.4.11/doctest/parts/doctest.cpp:2392:27: style: Variable 'curr' can be declared as reference to const [constVariableReference] doctest-2.4.11/doctest/parts/doctest.cpp:2396:27: style: Variable 'curr' can be declared as reference to const [constVariableReference] doctest-2.4.11/doctest/parts/doctest.cpp:3108:31: style: Variable 'curr' can be declared as reference to const [constVariableReference] doctest-2.4.11/doctest/parts/doctest.cpp:236:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] doctest-2.4.11/doctest/parts/doctest.cpp:2242:20: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] doctest-2.4.11/doctest/parts/doctest.cpp:1093:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] doctest-2.4.11/doctest/parts/doctest.cpp:1101:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] doctest-2.4.11/doctest/parts/doctest.cpp:3786:19: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] doctest-2.4.11/doctest/parts/doctest.cpp:379:24: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] doctest-2.4.11/doctest/parts/doctest.cpp:1784:19: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] doctest-2.4.11/doctest/parts/doctest.cpp:1789:19: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] diff: DONE