[libcxx-commits] [libcxx] 20d30f7 - [libc++] Add clang-tidy for the tests

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 20 02:26:55 PDT 2022


Author: Nikolas Klauser
Date: 2022-07-20T11:26:49+02:00
New Revision: 20d30f709b9ae965465f865edef40476178938e6

URL: https://github.com/llvm/llvm-project/commit/20d30f709b9ae965465f865edef40476178938e6
DIFF: https://github.com/llvm/llvm-project/commit/20d30f709b9ae965465f865edef40476178938e6.diff

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

Reviewed By: Mordante, huixie90, #libc

Spies: aheejin, libcxx-commits

Differential Revision: https://reviews.llvm.org/D129976

Added: 
    libcxx/test/.clang-tidy

Modified: 
    libcxx/test/libcxx/clang_tidy.sh.cpp

Removed: 
    


################################################################################
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.
 


        


More information about the libcxx-commits mailing list