{ "tokens": { "input": 76957, "cache_read": 2391774, "cache_write": 113894, "output": 22591 }, "reviews": [ { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/src/memory_data.c:169:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing no-EOF-newline detection as a portability warning instead of dropping it. memory_data.c is a C file, and the reported location (169:2) is right after its final '}', which means the file ends without a newline character. In C (C99/C11 5.1.1.2p2) a non-empty source file that does not end in a newline is undefined behavior, so the new warning is a true positive. It is low-severity and mostly pedantic, but it is correct for C code." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/src/string_token.c:407:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing portability outputs, including the no-newline-at-EOF check. The warning points just after the final `}` at line 407, column 2, which fits a file whose last line has no newline. This is a C file, and in C a non-empty source file that does not end in a newline is undefined behavior (C11 5.1.1.2). So the new portability warning is a correct, newly added true positive, though a minor one." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/src/ws_url.c:373:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing no-newline-at-EOF portability output as a `simplecppPortabilityNoEofNewline` warning. `ws_url.c` is a C file whose last line 373 is `}`. The column 2 location, right after the brace, shows the file ends without a trailing newline. The C standard says a non-empty source file shall end in a newline, and breaking that rule is undefined behavior, so the warning is correct for a .c file. It is a minor portability issue, but it is a true positive that was not reported before." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/real_test_files/real_constbuffer.h:54:28: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning instead of dropping it. The header's last line, `#endif //REAL_CONSTBUFFER_H`, is 27 characters long, and the warning points at column 28, just past it. This matches a file that ends without a trailing newline. C says a non-empty source file must end in a newline, and violating this is undefined behavior. So this is a new true-positive portability finding in a C header, though of low practical severity." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/real_test_files/real_constbuffer_array_renames.h:16:89: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning. Before, it was silently dropped. The header ends at line 16, column 89, right after the #define, which is consistent with the file having no trailing newline. In C a non-empty source file that does not end in a newline is undefined behavior (C11 5.1.1.2p2), so this is a new true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/real_test_files/real_strings.h:93:7: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing no-EOF-newline output as a portability warning. The location 93:7 is just past the final `#endif` (6 characters) on the last line. That indicates the file ends without a trailing newline, and the other reported files show the same pattern (e.g. col 2 after a closing `}`). A non-empty C source file not ending in a newline is undefined behavior per C 5.1.1.2, so this looks like a correct, newly reported true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/srw_lock_ut/main.c:12:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "This PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. The warning points at line 12, column 2, right after the closing '}' of main(). That position means the file ends without a newline. This is a .c file, and the C standard says a non-empty source file shall end in a newline character; otherwise the behavior is undefined. So the new warning is a true positive. It has portability severity and is low impact, but it is accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/string_tokenizer_ut/string_tokenizer_ut.c:846:43: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing PORTABILITY_NO_EOF_NEWLINE output as a portability warning. The file's last line, `END_TEST_SUITE(string_tokenizer_unittests)`, is 42 characters long, and the warning is at column 43, right after it. So the file ends without a trailing newline. C (5.1.1.2p2) says a non-empty source file that does not end in a newline is undefined behavior, so the new warning is a true positive. It only appears when portability checks are enabled." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/strings_ut/strings_ut.c:1699:34: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning. Before, it was silently dropped. The file ends at line 1699 with `END_TEST_SUITE(strings_unittests)`, which is 33 characters, and the warning points at column 34, right after the last character. So the file really has no final newline. In C (C99/C11 5.1.1.2) a non-empty source file that does not end in a newline is undefined behavior, so the warning is correct. It is a newly added true positive, although a pedantic one." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tests/tickcounter_freertos_ut/freertos/FreeRTOS.h:24:21: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. The reported location is line 24, column 21, which is just past the last character of `#endif // FREERTOS_H` (20 characters). So the file really does end without a trailing newline. In C (pre-C23 wording, C99 5.1.1.2), a non-empty source file that does not end in a newline is undefined behavior. The header is meant for C compilation (it has a `#else` branch that includes ``), so the warning is accurate. It is a newly reported true positive of low severity, not a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/samples/websockets_sample/iothub_certs.c:88:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. This is a .c file whose last line is the `;` that ends the certificate string. The warning points to column 2, just after that `;`, which fits a file that ends without a trailing newline. In C, a non-empty source file that does not end in a newline is undefined behavior (C11 5.1.1.2p2), so the warning is correct. This is a newly added true positive, though of low severity." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/src/amqpvalue.c:7487:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning. Before, it was silently dropped. amqpvalue.c ends at line 7487 with '}' and no trailing newline, which is consistent with all the other files flagged in this package. In C (C99 5.1.1.2), a non-empty source file that does not end in a newline is undefined behavior. The warning is a true positive and is newly added, though it is low-impact." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/a/azure-uamqp-python/azure-uamqp-python_1.6.11.orig.tar.gz", "your azure-uamqp-python-1.6.11/src/vendor/azure-uamqp-c/src/link.c:1830:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning. link.c is a C file, and the warning points at line 1830 column 2, just after the final '}', which means the file ends without a newline. C requires a non-empty source file to end in a new-line character; breaking that 'shall' rule is undefined behavior. So the new warning is a true positive. It is low-impact, but it is enabled only with portability severity." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/b/bpfcc/bpfcc_0.37.0+ds.orig.tar.xz", "your bcc-0.37.0/examples/networking/tcp_mon_block/src/tcp_mon_block.c:247:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now surfaces simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. The warning points at line 247, column 2, right after the closing '}' of the last function. That means the file ends without a trailing newline. In C (C11 5.1.1.2p2) a non-empty source file not ending in a newline is undefined behavior, so this is a newly reported true positive. It is minor but correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/e/elinks/elinks_0.19.1.orig.tar.xz", "your elinks-0.19.1/src/cookies/path.h:14:7: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was dropped. path.h is a C header whose last line is `#endif`. The location 14:7 is just past the 6 characters of `#endif`, which fits a file without a trailing newline. In C a non-empty source file must end in a newline, otherwise behavior is undefined (C99 5.1.1.2). simplecpp detects this directly from the raw input, so this is a correct new true positive. It is low-impact but accurate." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/e/elinks/elinks_0.19.1.orig.tar.xz", "your elinks-0.19.1/src/js/quickjs/window.c:1368:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning instead of dropping it silently. window.c is a C file. The warning points to column 2 of the last line, right after the closing `}` of getWindow, which means the file ends without a trailing newline. In C, a non-empty source file that does not end in a newline is undefined behavior (C99/C11 5.1.1.2). The new warning is therefore a true positive, though a minor one." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "main libvpl-2.17.0/libvpl/test/ext/googletest/googletest/test/googletest-param-test-test.cc:1:27: error: failed to expand 'TEST_P', Invalid ## usage when expanding 'TEST_P': Unexpected token ')' [syntaxError]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The same syntaxError on the same TEST_P expansion is still reported. Only the message text changed: \"Unexpected token ')'\" became \"Combining ')' and '_' yields an invalid token.\" The new text names both operands of the ## paste and states why the paste is invalid, so it is more accurate. Whether the error itself is valid, or comes from how Cppcheck expands googletest's macros, is the same before and after this change. Overall this is a message accuracy improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "main libvpl-2.17.0/libvpl/test/unit/src/legacycpp-session-test-1x.cpp:1:25: error: failed to expand 'TEST_CUSTOM', Invalid ## usage when expanding 'TEST': Unexpected token ')' [syntaxError]" ], "verdict": { "verdict": "improvement", "confidence": "low", "explanation": "The same syntaxError is still reported at the same place: simplecpp still fails to expand TEST_CUSTOM/TEST. Only the wording changed. The old text \"Unexpected token ')'\" becomes \"Combining ')' and '_' yields an invalid token\", which names both operands of the bad ## paste. The PR replaced the up-front token checks with checkPaste, which validates the actual pasted result, so the new message describes the failure better. The source of TEST_CUSTOM is not shown, so it is unknown whether the expansion failure itself is genuine. The message change alone is a small accuracy improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "main libvpl-2.17.0/libvpl/test/unit/src/legacycpp-session-test-2x.cpp:1:25: error: failed to expand 'TEST_CUSTOM', Invalid ## usage when expanding 'TEST': Unexpected token ')' [syntaxError]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "This removed line is paired with a new line at the same location. Both report the same failure to expand 'TEST_CUSTOM' inside gtest's 'TEST' macro. Only the wording changed: 'Unexpected token )' became 'Combining ) and _ yields an invalid token', which comes from the PR's reworked ## operand checks. The new wording is slightly more specific, but the diagnostic stays. Whether the error is real or comes from Cppcheck mis-expanding the nested gtest macros cannot be judged from the shown code. For users nothing practical changes." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "main libvpl-2.17.0/libvpl/test/unit/src/legacycpp-session-test.cpp:1:25: error: failed to expand 'TEST_CUSTOM', Invalid ## usage when expanding 'TEST': Unexpected token ')' [syntaxError]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Only the wording of an existing syntaxError changed: 'Unexpected token ')'' became 'Combining ')' and '_' yields an invalid token'. The code `TEST(TEST_NAME1(suite, ver), name)` is valid. The argument is macro-expanded before gtest's inner `##` pastes it, so real compilers accept it. Both messages are therefore the same false positive from simplecpp mishandling the nested expansion. The PR neither removes nor introduces the false positive. The new text is a bit more specific about the failing paste, but it describes the same wrong diagnosis, so it makes no real difference to users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "your libvpl-2.17.0/doc/spec/source/snippets/prg_decoding.c:521:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. prg_decoding.c is a C file whose last line 521 is '}' with no trailing newline, which the reported column 2 (just after the '}') confirms. C (C99/C11 5.1.1.2p2) says a non-empty source file shall end in a new-line, and breaking that rule is undefined behavior. So the warning is a correct, if low-impact, new true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "your libvpl-2.17.0/doc/spec/source/snippets/prg_encoding.c:839:7: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; main silently dropped it. prg_encoding.c is a C file whose last line is `#endif` at line 839. The column 7 is just past the 6 characters of `#endif`, which means the file ends without a newline. In C (C99/C11 5.1.1.2p2), a non-empty source file that does not end in a newline is undefined behavior, so this is a newly added true positive. It is minor, but correct." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "your libvpl-2.17.0/libvpl/test/ext/googletest/googletest/test/googletest-param-test-test.cc:1:27: error: failed to expand 'TEST_P', Invalid ## usage when expanding 'TEST_P': Combining ')' and '_' yields an invalid token. [syntaxError]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Main and the PR both report the same syntaxError at the same location; only the wording changed. The message went from \"Unexpected token ')'\" to \"Combining ')' and '_' yields an invalid token\", because the ## checks were moved into checkHashHashOperands/checkPaste. The likely trigger is googletest's macro-naming test, e.g. TEST_P(PREFIX_WITH_MACRO(NamingTest), ...). A real compiler expands that argument fully before it reaches the ## inside GTEST_TEST_CLASS_NAME_, so the code is valid. The warning is therefore a false positive both before and after the PR. The new text is somewhat more specific, but the FP itself is unchanged, so this does not matter much to users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "your libvpl-2.17.0/libvpl/test/unit/src/legacycpp-session-test-1x.cpp:1:25: error: failed to expand 'TEST_CUSTOM', Invalid ## usage when expanding 'TEST': Combining ')' and '_' yields an invalid token. [syntaxError]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "This is the same syntaxError, at the same location, for the same failed expansion of TEST_CUSTOM/TEST. Only the wording changed: the new checkPaste logic reports \"Combining ')' and '_' yields an invalid token\" instead of \"Unexpected token ')'\". The libvpl test code presumably compiles with real compilers, so the expansion failure is probably a simplecpp limitation (a false positive) in both versions. The PR neither fixes nor introduces it. The new text is somewhat more descriptive, but the user-visible result is the same bailout, so the change is essentially neutral." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "your libvpl-2.17.0/libvpl/test/unit/src/legacycpp-session-test-2x.cpp:1:25: error: failed to expand 'TEST_CUSTOM', Invalid ## usage when expanding 'TEST': Combining ')' and '_' yields an invalid token. [syntaxError]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Cppcheck already reported this syntaxError for the `TEST_CUSTOM`/gtest `TEST` expansion before the PR; it is the same failure at the same location. Only the wording changed: the old 'Unexpected token ')'' became 'Combining ')' and '_' yields an invalid token', because the `##` operand checks were moved into `checkPaste`. The new text is somewhat more descriptive. However, the file shown only includes another source, so it cannot be confirmed whether the expansion failure is real or a simplecpp mis-expansion of gtest's nested `##` macros. Users see no change in whether an error is reported." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/libv/libvpl/libvpl_2.17.0.orig.tar.xz", "your libvpl-2.17.0/libvpl/test/unit/src/legacycpp-session-test.cpp:1:25: error: failed to expand 'TEST_CUSTOM', Invalid ## usage when expanding 'TEST': Combining ')' and '_' yields an invalid token. [syntaxError]" ], "verdict": { "verdict": "neutral", "confidence": "medium", "explanation": "Line 30 expands `TEST_CUSTOM`, which calls `TEST(TEST_NAME1(suite, ver), name)`. In gtest, `TEST` forwards its arguments through `GTEST_TEST`/`GTEST_TEST_`, so they are fully macro-expanded before reaching the `##` in `GTEST_TEST_CLASS_NAME_`. A real compiler therefore pastes `LegacycppCreateSessionx ## _ ## InitSucceeds ## _Test` without trouble. simplecpp instead ends up pasting the unexpanded `)` of `TEST_NAME1(...)`. The warning is a false positive both before and after the PR. Only the error text changed, from \"Unexpected token ')'\" to \"Combining ')' and '_' yields an invalid token\", because the `##` validity check was reworked. Neither message describes a real problem, so this is neither better nor worse for users." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/p/procinfo/procinfo_2.0.304.orig.tar.gz", "your procinfo-ng-2.0.304/tests/sizes.c:10:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The pull request now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning. Before, it was silently dropped. tests/sizes.c is a C file whose last line is the closing `}` at line 10. simplecpp raises this warning only when the input stream ends without a final newline, so the file apparently lacks one. In C, a non-empty source file that does not end in a newline is undefined behavior (C11 5.1.1.2p2). The new warning is therefore a true positive with an accurate message. It is low-severity and only shown when portability checks are enabled." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/s/smallerc/smallerc_1.0.2+dfsg.orig.tar.xz", "main v0100/tests/fp/fpconst.c:27:36: error: failed to expand 'TEST_ENTRY', Invalid ## usage when expanding 'TEST_ENTRY': Unexpected token '.00' [syntaxError]" ], "verdict": { "verdict": "improvement", "confidence": "high", "explanation": "The macro `TEST_ENTRY(U,F) { U, #F, F##f }` pastes a floating-point constant with the suffix `f`. For `.00`, pasting gives `.00f`, which is a valid pp-number, so the code is valid C. Main reported a false syntaxError because simplecpp rejected `.00` as an unexpected token for `##`. The PR rewrote the `##` operand checks: the up-front check now only applies when the left operand is a name or number, and the result `.00f` is accepted. Removing this false preprocessor error lets Cppcheck analyze the file, so this is an improvement." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tarantool/tarantool_2.6.0.orig.tar.gz", "main tarantool_2.6.0/third_party/curl/src/macos/src/curl_GUSIConfig.cpp:29:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The file is valid (legacy Mac) C++. Its braces are balanced: the function bodies at lines 30-39 and 50-59 and the array initializer are all closed. So the main-only 'Unmatched '{'' syntaxError, reported at an odd location (blank line 29), is a false positive caused by mis-tokenization in the old simplecpp. With the PR's reworked simplecpp, the file parses: Cppcheck now gets as far as valueFlow (the new debug bailout at line 72). Removing this false syntax error, which aborted analysis of the file, is an improvement. The exact root cause in the old simplecpp is not visible from the shown code, so confidence is medium." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tarantool/tarantool_2.6.0.orig.tar.gz", "your tarantool_2.6.0/test/unit/swim.c:1143:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now passes simplecpp's existing PORTABILITY_NO_EOF_NEWLINE output on as a portability warning; before, it was silently dropped. swim.c is a C file whose last line is the closing '}' of main at line 1143, reported at column 2, just after that brace. simplecpp only emits this when the file really lacks a trailing newline. In C (C99/C11 5.1.1.2), a non-empty source file without a final newline is undefined behavior, so the warning is technically a true positive. It is minor and somewhat noisy, but it is accurate and only shown when portability checks are enabled." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tarantool/tarantool_2.6.0.orig.tar.gz", "your tarantool_2.6.0/test/unit/swim_proto.c:267:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing missing-newline-at-EOF warning as a portability message. The warning points at line 267, column 2, right after the closing '}' of main(), which means the file ends without a newline character. swim_proto.c is a C file, and C (C99/C11 5.1.1.2) requires a non-empty source file to end in a newline, otherwise the behavior is undefined. So the message is a correct new true positive, though it is minor." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tarantool/tarantool_2.6.0.orig.tar.gz", "your tarantool_2.6.0/third_party/c-ares/ares__sortaddrinfo.c:494:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. The warning is at 494:2, just after the closing '}' on the last line. That position fits a file that ends without a trailing newline. For a C file this is formally undefined behavior: C99/C11 5.1.1.2 says a non-empty source file shall end in a new-line character. So this is a new true positive, if minor, and not a false positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tarantool/tarantool_2.6.0.orig.tar.gz", "your tarantool_2.6.0/third_party/curl/src/macos/src/curl_GUSIConfig.cpp:72:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kNoResource [valueFlowBailoutIncompleteVar]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Main stopped on this file with an 'Unmatched '{'' syntaxError at line 29 in the __GNUC__=1 configuration. The visible braces are balanced, so that error was most likely a preprocessing false positive. With the simplecpp update the file now preprocesses cleanly and the function bodies are analyzed. The new valueFlowBailoutIncompleteVar debug message is a side effect of that deeper analysis. GUSIConfiguration::kNoResource comes from a GUSI header that is not available, so the bailout is expected. It does not mean Cppcheck understands the code worse; the file is now checked instead of being rejected." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/t/tree-sitter-vim/tree-sitter-vim_0.8.1.orig.tar.xz", "your tree-sitter-vim-0.8.1/src/keywords.h:582:3: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Before this PR, Cppcheck dropped simplecpp's PORTABILITY_NO_EOF_NEWLINE output. Now it reports it as a portability warning. keywords.h ends at line 582 with `};`, and the reported column 3 points just past those two characters. That fits a file whose last line has no trailing newline. The C standard (5.1.1.2) requires a non-empty source file to end in a newline, and violating that 'shall' is undefined behavior. So this new warning is very likely a true positive, though the raw file bytes cannot be checked here. It is the intended effect of the change." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/x/xcfa/xcfa_5.0.2.orig.tar.gz", "your xcfa-5.0.2/src_cli/utils.c:110:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE as a portability warning; before, it was silently dropped. utils.c is a C file whose last line 110 is the closing `}`, and the warning column 2 is just after it, so the file evidently has no trailing newline. In C, a non-empty source file that does not end in a newline is undefined behavior (C99/C11 5.1.1.2). The new warning is a correct, if minor, true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/common/util.c:854:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning, where before it was silently dropped. Line 854 is the closing '}' at column 2, which suggests the file ends without a trailing newline. In C before C11, a non-empty source file that does not end in a newline is undefined behavior. The warning is real but minor, and it is a new true positive rather than a false one." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/lib/scp11_util.c:211:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. The warning points just after the closing '}' on the last line (211:2) of a C file, which indicates the file really does not end with a newline. In C (C11 5.1.1.2p2), a non-empty source file that does not end in a newline is undefined behavior, so the message is accurate for this .c file. This is a newly reported true positive, although of low practical importance." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/lib/util.c:1882:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing PORTABILITY_NO_EOF_NEWLINE output as a portability warning instead of dropping it. lib/util.c ends at line 1882 with the function's closing '}'. The warning at column 2, right after that brace, means simplecpp read EOF with no trailing newline. In C (C99/C11 5.1.1.2) a non-empty source file that does not end in a newline is undefined behavior, so the message is accurate. This is a new true positive, though a minor one." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/lib/ykpiv.c:2960:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. The warning points to line 2960, column 2, just after the final '}' of ykpiv_global_reset, which is the last line of the file. That position fits a file that ends without a trailing newline. A non-empty C source file that does not end in a newline is undefined behavior (C11 5.1.1.2), so the warning is technically correct and is a new true positive. I cannot see the raw bytes to confirm the missing newline, but the column and the same pattern in several files of this package make it likely." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/ykcs11/objects.c:3106:2: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. objects.c is a C file. The warning points at column 2 of the last line, right after the closing '}'. That means the file ends without a newline. A non-empty C source file that does not end in a newline is undefined behavior (C 5.1.1.2). So this is a correct, newly reported portability finding, though a low-impact one." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/ykcs11/tests/ykcs11_edx_test.c:453:31: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The PR now reports simplecpp's existing PORTABILITY_NO_EOF_NEWLINE output as a portability warning; before, it was silently dropped. The file ends with the comment `//#pragma clang diagnostic pop` on line 453. The warning's column 31 is just past the last character of that 30-character line, so there is no newline after it. The other files in this package are flagged the same way, at column 2 right after a closing `}`, which is consistent. A non-empty C source file that does not end in a newline is undefined behavior (C11 5.1.1.2), so this is a correct, though minor, new true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/ykcs11/tests/ykcs11_interfaces_tests.c:122:31: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 122, `//#pragma clang diagnostic pop`, is the last line of a .c file. The column (31) points just past this 30-character comment, which fits a file that ends without a final newline. Before C23, a non-empty C source file that does not end in a newline is undefined behavior (C11 5.1.1.2p2), so the warning is accurate. The PR now reports simplecpp's existing NO_EOF_NEWLINE output as a portability warning instead of dropping it. That makes this a newly reported true positive." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/ykcs11/tests/ykcs11_tests.c:975:31: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "Line 975 is the last line of the file, `//#pragma clang diagnostic pop`. The warning's column 31 is just past the end of this 30-character comment, so the file ends without a newline. C (5.1.1.2) requires a non-empty source file to end in a newline, so this is a true portability finding. Before this PR, simplecpp detected the condition but Cppcheck silently dropped it. The PR now reports PORTABILITY_NO_EOF_NEWLINE as a portability warning, which adds a correct new diagnostic." } }, { "key": [ "https://ftp.debian.org/debian/pool/main/y/yubico-piv-tool/yubico-piv-tool_2.7.3.orig.tar.gz", "your yubico-piv-tool-2.7.3/ykcs11/tests/ykcs11_tests_util.h:122:7: portability: No newline at end of file is undefined behavior in C. [simplecppPortabilityNoEofNewline]" ], "verdict": { "verdict": "improvement", "confidence": "medium", "explanation": "The header ends with `#endif` at line 122 and has no trailing newline; the warning column 7 is just past the 6-character directive. In C (C99/C11 5.1.1.2), a non-empty source file must end in a newline, and violating that is undefined behavior. The PR now reports simplecpp's existing PORTABILITY_NO_EOF_NEWLINE output as a portability warning. This is a correct new true positive, though its practical impact is minor because modern compilers accept such files." } } ], "started": "2026-11-21 18:16:46 UTC", "runner": "aws-testrunner-2" }