diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-07-18 02:01:02 +0200 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-07-20 11:26:49 +0200 |
commit | 20d30f709b9ae965465f865edef40476178938e6 (patch) | |
tree | 83966b715a33cca4d391d8aaeb8953fc0567ae3f /libcxx | |
parent | 24c88c90a8fc63a67bad4d9b4da94ed4e7a59726 (diff) |
[libc++] Add clang-tidy for the tests
Reviewed By: Mordante, huixie90, #libc
Spies: aheejin, libcxx-commits
Differential Revision: https://reviews.llvm.org/D129976
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/test/.clang-tidy | 5 | ||||
-rw-r--r-- | libcxx/test/libcxx/clang_tidy.sh.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcxx/test/.clang-tidy b/libcxx/test/.clang-tidy new file mode 100644 index 000000000000..c0f9695bf5a0 --- /dev/null +++ b/libcxx/test/.clang-tidy @@ -0,0 +1,5 @@ +InheritParentConfig: true + +CheckOptions: + - key: readability-identifier-naming.ParameterPrefix + value: "" diff --git a/libcxx/test/libcxx/clang_tidy.sh.cpp b/libcxx/test/libcxx/clang_tidy.sh.cpp index bd83555cdc75..93d596921751 100644 --- a/libcxx/test/libcxx/clang_tidy.sh.cpp +++ b/libcxx/test/libcxx/clang_tidy.sh.cpp @@ -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. |