fmt:

Run:43521388434
Check:main: bugprone-*
Status:ok
Time:24s
Warnings:194 (TP 0, FP 0, unclassified 194)
Source:fmtlib/fmt/blob/5e7c70e2061e59aef58146b55f9f7fd0a7505a6d

Warnings (194):

VerdictLocationMessage
-include/fmt/color.h:180:12use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:181:15use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:182:19use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:191:19use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:191:25use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:191:42use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:191:47use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:191:62use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:193:29use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:193:35use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:194:29use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:194:34use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:195:27use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:211:62use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:212:62use of a signed integer operand with a binary bitwise operator
-include/fmt/color.h:229:42enum value of type 'emphasis' initialized with invalid value of 0, enum doesn't have a zero-value enumerator
-include/fmt/color.h:319:12enum value of type 'emphasis' initialized with invalid value of 0, enum doesn't have a zero-value enumerator
-include/fmt/color.h:349:26an exception may be thrown in function 'operator|' which should not throw exceptions
-include/fmt/compile.h:20:33tagged union has more data members (3) than tags (1)!
-include/fmt/compile.h:292:20returning a constant reference parameter may cause use-after-free when the parameter is constructed from a temporary
-include/fmt/compile.h:292:24returning a constant reference parameter may cause use-after-free when the parameter is constructed from a temporary
-include/fmt/core.h:641:262 adjacent parameters of 'buffer<T>' of similar type ('size_t') are easily swapped by mistake
-include/fmt/core.h:1064:12returning a constant reference parameter may cause use-after-free when the parameter is constructed from a temporary
-include/fmt/core.h:1093:55use of a signed integer operand with a binary bitwise operator
-include/fmt/core.h:1094:58use of a signed integer operand with a binary bitwise operator
-include/fmt/core.h:1275:60returning a constant reference parameter may cause use-after-free when the parameter is constructed from a temporary
-include/fmt/core.h:1381:23initialization of 'num_named_args' with static storage duration may throw an exception that cannot be caught
-include/fmt/core.h:1542:9conversion of '(unnamed enum at /__w/CTIT/CTIT/test_projects/fmt/include/fmt/core.h:1467:5)' into 'bool' will always return 'true', enum doesn't have a zero-value enumerator
-include/fmt/core.h:1587:9conversion of '(unnamed enum at /__w/CTIT/CTIT/test_projects/fmt/include/fmt/core.h:1467:5)' into 'bool' will always return 'true', enum doesn't have a zero-value enumerator
-include/fmt/core.h:1608:162 adjacent parameters of 'reserve' of similar type ('size_t') are easily swapped by mistake
-include/fmt/core.h:1654:26use of a signed integer operand with a binary bitwise operator
-include/fmt/core.h:1655:48use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:139:15an exception may be thrown in function 'format_error_code' which should not throw exceptions
-include/fmt/format-inl.h:257:8performing an implicit widening conversion to type 'const uint64_t' (aka 'const unsigned long') of a multiplication performed in type 'int'
-include/fmt/format-inl.h:257:25performing an implicit widening conversion to type 'const uint64_t' (aka 'const unsigned long') of a multiplication performed in type 'int'
-include/fmt/format-inl.h:266:8performing an implicit widening conversion to type 'const uint64_t' (aka 'const unsigned long') of a multiplication performed in type 'int'
-include/fmt/format-inl.h:266:25performing an implicit widening conversion to type 'const uint64_t' (aka 'const unsigned long') of a multiplication performed in type 'int'
-include/fmt/format-inl.h:360:15use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:379:46use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:380:32use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:384:49use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:409:36use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:409:62use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:411:38use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:412:17use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:420:33use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:422:40use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:425:26use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:426:17use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:434:57use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:436:17use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:442:15use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:453:45use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:454:53use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:474:7use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:475:10use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:503:23use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:503:39use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:504:15use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:528:43use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:556:44use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:564:41use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:569:43use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:569:67use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:574:17use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:598:13use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:613:31use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:614:35use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:662:18use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:673:28use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:674:5use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:678:5use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:681:12use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:682:7use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:699:16performing an implicit widening conversion to type 'accumulator_t' (aka 'unsigned __int128') of a multiplication performed in type 'double_bigit' (aka 'unsigned long')
-include/fmt/format-inl.h:702:15use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:708:16performing an implicit widening conversion to type 'accumulator_t' (aka 'unsigned __int128') of a multiplication performed in type 'double_bigit' (aka 'unsigned long')
-include/fmt/format-inl.h:710:15use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:792:24use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:796:52use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:798:37use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:803:68use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:852:45use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:854:61use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:863:65use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:896:272 adjacent parameters of 'on_digit' of convertible types are easily swapped by mistake
-include/fmt/format-inl.h:948:272 adjacent parameters of 'on_digit' of convertible types are easily swapped by mistake
-include/fmt/format-inl.h:949:272 adjacent parameters of 'on_digit' of convertible types are easily swapped by mistake
-include/fmt/format-inl.h:984:37use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1014:34use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1020:26use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1253:29use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1262:24use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1262:39use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1263:25use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1263:34use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1264:25use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1264:34use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1265:25use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1265:34use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1266:10use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1269:28use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1270:3use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1270:17use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1270:33use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1271:3use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1271:28use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1272:3use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1272:9use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1272:17use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1273:3use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1273:9use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1273:17use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1274:3use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1274:19use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1275:3use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1276:3use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1316:62use of a signed integer operand with a binary bitwise operator
-include/fmt/format-inl.h:1317:61use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:243:22multilevel pointer conversion from 'const void *const *' to 'const void *', please use explicit cast
-include/fmt/format.h:401:9declaration uses identifier '_Unchecked_type', which is a reserved identifier
-include/fmt/format.h:440:9declaration uses identifier '_Unchecked_type', which is a reserved identifier
-include/fmt/format.h:508:20use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:529:20use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:668:24an exception may be thrown in function 'operator=' which should not throw exceptions
-include/fmt/format.h:775:11use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:775:39use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:833:11use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:833:37use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:922:31use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:922:33use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:943:33use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:943:35use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:1074:23result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t'
-include/fmt/format.h:1079:19result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t'
-include/fmt/format.h:1365:692 adjacent parameters of 'write_padded' of similar type ('size_t') are easily swapped by mistake
-include/fmt/format.h:1537:10conversion of 'char8_type' into 'bool' will always return 'true', enum doesn't have a zero-value enumerator
-include/fmt/format.h:2296:42use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:2296:51use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:2299:29use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:2299:38use of a signed integer operand with a binary bitwise operator
-include/fmt/format.h:2377:31incrementing and referencing a variable in a complex condition can cause unintended side-effects due to C++'s order of evaluation, consider moving the modification outside of the condition to avoid misunderstandings
-include/fmt/format.h:2957:5switch has 3 consecutive identical branches
-include/fmt/format.h:3080:5potential uncovered code path; add a default label
-include/fmt/format.h:3309:202 adjacent parameters of 'snprintf_float' of convertible types are easily swapped by mistake
-include/fmt/os.h:231:18an exception may be thrown in function 'operator=' which should not throw exceptions
-include/fmt/os.h:295:9an exception may be thrown in function 'operator=' which should not throw exceptions
-include/fmt/ranges.h:86:40initialization of 'value' with static storage duration may throw an exception that cannot be caught
-include/fmt/ranges.h:113:40initialization of 'value' with static storage duration may throw an exception that cannot be caught
-test/chrono-test.cc:267:5empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether
-test/core-test.cc:36:16declaration uses identifier '_', which is reserved in the global namespace; cannot be fixed automatically
-test/core-test.cc:297:46macro argument should be enclosed in parentheses
-test/core-test.cc:299:63macro argument should be enclosed in parentheses
-test/core-test.cc:331:13'signed char' to 'typename visit_type<value_type>::Type' (aka 'int') conversion; consider casting to 'unsigned char' first.
-test/core-test.cc:332:13'signed char' to 'typename visit_type<value_type>::Type' (aka 'int') conversion; consider casting to 'unsigned char' first.
-test/core-test.cc:543:49throwing an exception whose type 'const char *' is not derived from 'std::exception'
-test/core-test.cc:562:5empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether
-test/custom-formatter-test.cc:9:9declaration uses identifier '_CRT_SECURE_NO_WARNINGS', which is a reserved identifier
-test/format-impl-test.cc:16:11suspicious #include of file with '.cc' extension
-test/format-impl-test.cc:243:18use of a signed integer operand with a binary bitwise operator
-test/format-impl-test.cc:253:25use of a signed integer operand with a binary bitwise operator
-test/format-impl-test.cc:253:46use of a signed integer operand with a binary bitwise operator
-test/format-impl-test.cc:256:20use of a signed integer operand with a binary bitwise operator
-test/format-impl-test.cc:256:42use of a signed integer operand with a binary bitwise operator
-test/format-test.cc:128:72use of a signed integer operand with a binary bitwise operator
-test/format-test.cc:227:31'buffer' used after it was moved
-test/format-test.cc:258:33'buffer' used after it was moved
-test/format-test.cc:268:31'buffer' used after it was moved
-test/format-test.cc:289:33'buffer' used after it was moved
-test/format-test.cc:328:19performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int'
-test/format-test.cc:339:17performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int'
-test/format-test.cc:1103:37use of a signed integer operand with a binary bitwise operator
-test/format-test.cc:1231:39use of a signed integer operand with a binary bitwise operator
-test/gtest-extra-test.cc:29:45use of a signed integer operand with a binary bitwise operator
-test/gtest-extra-test.cc:219:50throwing an exception whose type 'int' is not derived from 'std::exception'
-test/gtest-extra-test.cc:230:53throwing an exception whose type 'int' is not derived from 'std::exception'
-test/mock-allocator.h:46:18operator=() does not handle self-assignment properly
-test/os-test.cc:189:15'bf' used after it was moved
-test/os-test.cc:199:15'bf' used after it was moved
-test/os-test.cc:314:17'f' used after it was moved
-test/os-test.cc:324:17'f' used after it was moved
-test/posix-mock-test.cc:10:11declaration uses identifier '_CRT_SECURE_NO_WARNINGS', which is a reserved identifier
-test/posix-mock-test.cc:21:11suspicious #include of file with '.cc' extension
-test/posix-mock-test.cc:36:16declaration uses identifier '_', which is reserved in the global namespace; cannot be fixed automatically
-test/printf-test.cc:50:24macro argument should be enclosed in parentheses
-test/printf-test.cc:336:54'signed char' to 'unsigned long long' conversion; consider casting to 'unsigned char' first.
-test/printf-test.cc:339:54'signed char' to 'unsigned long long' conversion; consider casting to 'unsigned char' first.
-test/printf-test.cc:342:43'signed char' to 'long long' conversion; consider casting to 'unsigned char' first.
-test/printf-test.cc:346:20'signed char' to 'long long' conversion; consider casting to 'unsigned char' first.
-test/scan.h:157:162 adjacent parameters of 'scan_handler' of similar type ('string_view') are easily swapped by mistake
-test/test-main.cc:19:11declaration uses identifier '_CrtSetReportFile', which is a reserved identifier
-test/test-main.cc:20:11declaration uses identifier '_CrtSetReportMode', which is a reserved identifier
-test/test-main.cc:39:5empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether
-test/util.h:79:83 adjacent parameters of 'Date' of similar type ('int') are easily swapped by mistake

Generated from 3ddf6fa37f.