[libcxx-commits] [PATCH] D129976: [libc++] Add clang-tidy for the tests
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 17 17:01:31 PDT 2022
philnik created this revision.
philnik added reviewers: ldionne, Mordante, var-const, huixie90.
Herald added a project: All.
philnik requested review of this revision.
Herald added subscribers: libcxx-commits, aheejin.
Herald added a project: libc++.
Herald added a reviewer: libc++.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D129976
Files:
libcxx/test/.clang-tidy
libcxx/test/libcxx/clang_tidy.sh.cpp
Index: libcxx/test/libcxx/clang_tidy.sh.cpp
===================================================================
--- libcxx/test/libcxx/clang_tidy.sh.cpp
+++ 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.
Index: libcxx/test/.clang-tidy
===================================================================
--- /dev/null
+++ libcxx/test/.clang-tidy
@@ -0,0 +1,5 @@
+InheritParentConfig: true
+
+CheckOptions:
+ - key: readability-identifier-naming.ParameterPrefix
+ value: ""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129976.445361.patch
Type: text/x-patch
Size: 1087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220718/aed4e48d/attachment-0001.bin>
More information about the libcxx-commits
mailing list