catch2:

Run:43521388434
Check:main: bugprone-*
Status:ok
Time:5s
Warnings:90 (TP 0, FP 0, unclassified 90)
Source:catchorg/Catch2/blob/02f8b5593a15cdec8558256e6f40a0c7fb5862d6

Warnings (90):

VerdictLocationMessage
-src/catch2/../catch2/benchmark/catch_benchmark.hpp:200:9macro argument should be enclosed in parentheses
-src/catch2/../catch2/benchmark/catch_benchmark.hpp:200:33macro argument should be enclosed in parentheses
-src/catch2/../catch2/benchmark/catch_benchmark.hpp:204:9macro argument should be enclosed in parentheses
-src/catch2/../catch2/benchmark/detail/catch_estimate_clock.hpp:29:39either cast from 'int' to 'size_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion
-src/catch2/../catch2/benchmark/detail/catch_run_for_at_least.hpp:51:33use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/catch_message.hpp:123:175macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_message.hpp:127:142macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_test_case_info.hpp:51:20use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/catch_test_case_info.hpp:52:22use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/catch_test_case_info.hpp:53:19use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/catch_test_case_info.hpp:54:18use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/catch_test_case_info.hpp:55:23use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/catch_test_case_info.hpp:56:21use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/catch_test_macros.hpp:185:78macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_test_macros.hpp:186:78macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_test_macros.hpp:187:78macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_test_macros.hpp:188:78macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_test_macros.hpp:189:78macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_test_macros.hpp:190:78macro argument should be enclosed in parentheses
-src/catch2/../catch2/catch_translate_exception.hpp:70:124macro argument should be enclosed in parentheses
-src/catch2/../catch2/interfaces/catch_interfaces_config.hpp:60:30use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_clara.hpp:481:19the implicit default constructor of the CRTP is publicly accessible; consider making it private and declaring the derived class as friend
-src/catch2/../catch2/internal/catch_clara.hpp:496:26protected constructor allows the CRTP to be inherited from as a regular template class; consider making it private and declaring the derived class as friend
-src/catch2/../catch2/internal/catch_compare_traits.hpp:67:44macro argument should be enclosed in parentheses
-src/catch2/../catch2/internal/catch_console_colour.hpp:35:25use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_console_colour.hpp:36:27use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_console_colour.hpp:37:25use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_console_colour.hpp:38:27use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_console_colour.hpp:39:28use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_floating_point_helpers.hpp:29:252 adjacent parameters of 'gamma' of similar type ('FloatType') are easily swapped by mistake
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:85:26macro argument should be enclosed in parentheses
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:86:23macro argument should be enclosed in parentheses
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:90:39use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:90:58use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:94:19use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:94:50use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:98:29use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:100:34use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:100:58use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:101:36use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_random_integer_helpers.hpp:111:60use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:24:28use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:25:27use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:27:21use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:29:26use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:30:31use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:32:31use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:37:18use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:53:55use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:58:18use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_result_type.hpp:61:18use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_sharding.hpp:17:482 adjacent parameters of 'createShard' of similar type ('const std::size_t') are easily swapped by mistake
-src/catch2/../catch2/internal/catch_stream_end_stop.hpp:24:20returning a constant reference parameter may cause use-after-free when the parameter is constructed from a temporary
-src/catch2/../catch2/internal/catch_string_manip.hpp:32:47use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_string_manip.hpp:32:60use of a signed integer operand with a binary bitwise operator
-src/catch2/../catch2/internal/catch_test_registry.hpp:80:282 adjacent parameters of 'NameAndTags' of similar type ('StringRef') are easily swapped by mistake
-src/catch2/../catch2/internal/catch_uniform_floating_point_distribution.hpp:91:422 adjacent parameters of 'uniform_floating_point_distribution<FloatType>' of similar type ('FloatType') are easily swapped by mistake
-src/catch2/../catch2/internal/catch_wildcard_pattern.hpp:23:34use of a signed integer operand with a binary bitwise operator
-src/catch2/benchmark/detail/catch_stats.cpp:350:482 adjacent parameters of 'analyse_samples' of convertible types are easily swapped by mistake
-src/catch2/catch_test_spec.cpp:33:412 adjacent parameters of 'NamePattern' of similar type ('const std::string &') are easily swapped by mistake
-src/catch2/catch_test_spec.cpp:47:392 adjacent parameters of 'TagPattern' of similar type ('const std::string &') are easily swapped by mistake
-src/catch2/catch_version.cpp:14:133 adjacent parameters of 'Version' of similar type ('unsigned int') are easily swapped by mistake
-src/catch2/generators/catch_generators_random.cpp:21:352 adjacent parameters of 'PImpl' of convertible types are easily swapped by mistake
-src/catch2/interfaces/catch_interfaces_reporter.cpp:75:362 adjacent parameters of 'TestCaseStats' of similar type ('std::string &&') are easily swapped by mistake
-src/catch2/internal/catch_clara.cpp:187:53side effects in the 1st macro argument '__VA_ARGS__' are repeated in macro expansion
-src/catch2/internal/catch_clara.cpp:261:62side effects in the 1st macro argument '__VA_ARGS__' are repeated in macro expansion
-src/catch2/internal/catch_enum_info.cpp:49:322 adjacent parameters of 'makeEnumInfo' of similar type ('StringRef') are easily swapped by mistake
-src/catch2/internal/catch_fatal_condition_handler.cpp:68:51performing an implicit widening conversion to type 'const std::size_t' (aka 'const unsigned long') of a multiplication performed in type 'int'
-src/catch2/internal/catch_main.cpp:17:31initialization of 'leakDetector' with static storage duration may throw an exception that cannot be caught
-src/catch2/internal/catch_output_redirect.cpp:57:342 adjacent parameters of 'RedirectedStreamNew' of similar type ('std::ostream &') are easily swapped by mistake
-src/catch2/internal/catch_output_redirect.cpp:302:20function '~RedirectGuard' should not throw exceptions but it is still marked as potentially throwing
-src/catch2/internal/catch_test_case_info_hasher.cpp:36:61use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_textflow.cpp:30:52use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:23:18use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:26:18use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:29:18use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:36:18use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:37:24use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:39:18use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:40:24use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:42:18use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:43:24use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:149:39use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:150:40use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:150:46use of a signed integer operand with a binary bitwise operator
-src/catch2/internal/catch_xmlwriter.cpp:150:53use of a signed integer operand with a binary bitwise operator
-src/catch2/matchers/catch_matchers_floating_point.cpp:76:402 adjacent parameters of 'WithinAbsMatcher' of similar type ('double') are easily swapped by mistake
-src/catch2/matchers/catch_matchers_floating_point.cpp:93:422 adjacent parameters of 'WithinUlpsMatcher' of convertible types are easily swapped by mistake
-src/catch2/matchers/catch_matchers_floating_point.cpp:164:402 adjacent parameters of 'WithinRelMatcher' of similar type ('double') are easily swapped by mistake
-src/catch2/reporters/catch_reporter_multi.cpp:28:58narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'difference_type' (aka 'long') is implementation-defined

Generated from 3ddf6fa37f.