[libc++] Add clang-tidy for the tests

Reviewed By: Mordante, huixie90, #libc

Spies: aheejin, libcxx-commits

Differential Revision: https://reviews.llvm.org/D129976
This commit is contained in:
Nikolas Klauser 2022-07-18 02:01:02 +02:00
parent 24c88c90a8
commit 20d30f709b
2 changed files with 6 additions and 1 deletions

5
libcxx/test/.clang-tidy Normal file
View file

@ -0,0 +1,5 @@
InheritParentConfig: true
CheckOptions:
- key: readability-identifier-naming.ParameterPrefix
value: ""

View file

@ -9,7 +9,7 @@
// REQUIRES: has-clang-tidy
// TODO: run clang-tidy with modules enabled once they are supported
// RUN: clang-tidy %s --warnings-as-errors=* -header-filter=.* -- -Wweak-vtables -Wno-unknown-warning-option %{compile_flags} -fno-modules
// 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.