diff --git a/libcxx/test/libcxx/clang_tidy.sh.cpp b/libcxx/test/libcxx/clang_tidy.sh.cpp --- 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 from generating deprecated warnings for this test. #if defined(__DEPRECATED)