[clang-tools-extra] [clang-tidy] Add `-std` argument in `check_clang_tidy.py` for C files (PR #150791)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 27 06:28:28 PDT 2025


================
@@ -1,6 +1,5 @@
-// RUN: %check_clang_tidy %s readability-magic-numbers %t --
+// RUN: %check_clang_tidy -std=c23-or-later %s readability-magic-numbers %t
 
 // Don't crash
 
 _BitInt(128) A = 4533629751480627964421wb;
-// CHECK-MESSAGES: warning
----------------
vbvictor wrote:

Could you elaborate why this warning is removed? Is this a new false-negative?

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


More information about the cfe-commits mailing list