[clang-tools-extra] [clang-tidy] Fix broken fix-its with `bugprone-not-null-terminated-result` on Windows (PR #162874)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 10 12:33:57 PDT 2025


================
@@ -1,11 +1,6 @@
 // RUN: %check_clang_tidy --match-partial-fixes %s bugprone-not-null-terminated-result %t -- \
 // RUN: -- -I %S/Inputs/not-null-terminated-result
 
-// FIXME: Something wrong with the APInt un/signed conversion on Windows:
-// in 'strncmp(str6, "string", 7);' it tries to inject '4294967302' as length.
----------------
localspook wrote:

In both files, this test case is already there; the test was simply not being run on Windows.

https://github.com/llvm/llvm-project/pull/162874


More information about the cfe-commits mailing list