[clang-tools-extra] [clang-tidy] Fix false negatives in performance-faster-string-find with libstdc++ (PR #185559)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 19:58:48 PDT 2026
================
@@ -136,3 +154,12 @@ int Macros() {
// CHECK-MESSAGES: [[@LINE-1]]:10: warning: 'find' called with a string literal
// CHECK-MESSAGES: [[@LINE-2]]:37: warning: 'find' called with a string literal
}
+
+void IteratorInLibStdCXX() {
----------------
zeyi2 wrote:
This is not exactly the same repro in the original issue, but I verify that it also causes a FN.
libstdc++: https://godbolt.org/z/YzvbTWafc
libc++: https://godbolt.org/z/ssYvohGGf
https://github.com/llvm/llvm-project/pull/185559
More information about the cfe-commits
mailing list