[clang-tools-extra] [clang-tidy] Add `-std` argument in `check_clang_tidy.py` for C files (PR #150791)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 28 06:24:11 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
----------------
localspook wrote:
This warning is (I think) for using extensions, which disappears now that the test is only run in C23+ mode. #65888 disabled this check for `_BitInt`, so this is an existing false negative.
https://github.com/llvm/llvm-project/pull/150791
More information about the cfe-commits
mailing list