================
@@ -5,14 +5,14 @@
// parsing and preprocessor state will not have that case.
// UNSUPPORTED: target={{.*-(ps4|ps5)}}
//
-// RUN: %check_clang_tidy -check-suffix=WITH-ANNEX-K %s
bugprone-unsafe-functions %t -- -- -D__STDC_LIB_EXT1__=1
-D__STDC_WANT_LIB_EXT1__=1
-// RUN: %check_clang_tidy -check-suffix=WITHOUT-ANNEX-K %s
bugprone-unsafe-functions %t -- -- -U__STDC_LIB_EXT1__
-U__STDC_WANT_LIB_EXT1__
-// RUN: %check_clang_tidy -check-suffix=WITHOUT-ANNEX-K %s
bugprone-unsafe-functions %t -- -- -D__STDC_LIB_EXT1__=1
-U__STDC_WANT_LIB_EXT1__
-// RUN: %check_clang_tidy -check-suffix=WITHOUT-ANNEX-K %s
bugprone-unsafe-functions %t -- -- -U__STDC_LIB_EXT1__
-D__STDC_WANT_LIB_EXT1__=1
-// RUN: %check_clang_tidy -check-suffix=WITH-ANNEX-K-CERT-ONLY %s
bugprone-unsafe-functions %t -- \
+// RUN: %check_clang_tidy -std=c11-or-later -check-suffix=WITH-ANNEX-K
%s bugprone-unsafe-functions %t -- -- -D__STDC_LIB_EXT1__=1
-D__STDC_WANT_LIB_EXT1__=1
----------------
localspook wrote:
We do: this test doesn't work with C99 because Annex K is a C11 feature. I
realized though that the default works for all the
`-check-suffix=WITHOUT-ANNEX-K` cases, so I've restored those.
https://github.com/llvm/llvm-project/pull/150791
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits