Skip to content

Commit

Permalink
[libc++][test] Disables clang-tidy test for GCC.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mordante committed Aug 14, 2022
1 parent 1561365 commit 3ec6900
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libcxx/test/libcxx/clang_tidy.sh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ec6900

Please sign in to comment.