[libcxx-commits] [libcxx] 3ec6900 - [libc++][test] Disables clang-tidy test for GCC.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 14 04:39:17 PDT 2022
Author: Mark de Wever
Date: 2022-08-14T13:39:12+02:00
New Revision: 3ec6900298d446045b58f7ac40cdb6cfdabe4a39
URL: https://github.com/llvm/llvm-project/commit/3ec6900298d446045b58f7ac40cdb6cfdabe4a39
DIFF: https://github.com/llvm/llvm-project/commit/3ec6900298d446045b58f7ac40cdb6cfdabe4a39.diff
LOG: [libc++][test] Disables clang-tidy test for GCC.
Increasing the constexpr evaluation limit breaks this clang-tidy test
for GCC. As discussed in D131317 disable the test in GCC.
Reviewed By: philnik, #libc
Differential Revision: https://reviews.llvm.org/D131835
Added:
Modified:
libcxx/test/libcxx/clang_tidy.sh.cpp
Removed:
################################################################################
diff --git a/libcxx/test/libcxx/clang_tidy.sh.cpp b/libcxx/test/libcxx/clang_tidy.sh.cpp
index 93d596921751..66ba54472394 100644
--- a/libcxx/test/libcxx/clang_tidy.sh.cpp
+++ b/libcxx/test/libcxx/clang_tidy.sh.cpp
@@ -8,10 +8,11 @@
// REQUIRES: has-clang-tidy
+// The GCC compiler flags are not always compatible with clang-tidy.
+// UNSUPPORTED: gcc
+
// TODO: run clang-tidy with modules enabled once they are supported
-// RUN: clang-tidy %s --warnings-as-errors=* -header-filter=.* --config-file=%S/../../.clang-tidy -- -Wweak-vtables -Wno-unknown-warning-option %{compile_flags} -fno-modules
-// -Wno-unknown-warning-option tells clang-tidy to ignore '-W' command-line arguments that it doesn't know.
-// There are some GCC-specific ones where clang-tidy would warn otherwise.
+// RUN: clang-tidy %s --warnings-as-errors=* -header-filter=.* --config-file=%S/../../.clang-tidy -- -Wweak-vtables %{compile_flags} -fno-modules
// Prevent <ext/hash_map> from generating deprecated warnings for this test.
#if defined(__DEPRECATED)
More information about the libcxx-commits
mailing list