[clang] [clang-tidy] warn when `true` is used as a preprocessor keyword in C (PR #128265)

via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 1 08:08:44 PST 2025


================
@@ -0,0 +1,45 @@
+// RUN: %check_clang_tidy -std=c99 %s bugprone-true-macro %t
+// RUN: %check_clang_tidy -std=c11 %s bugprone-true-macro %t
+// RUN: %check_clang_tidy -std=c17 %s bugprone-true-macro %t
----------------
isuckatcs wrote:

I added such option in the new, clang diagnostic test.

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


More information about the cfe-commits mailing list