summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/validate-check-names.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-09-04 14:23:36 +0000
committerAlexander Kornienko <alexfh@google.com>2014-09-04 14:23:36 +0000
commitd53d2686b31f83143a28d53135daaef595f396de (patch)
tree0c37c13cec880e2ea57f1b4fee749c2f5ce58325 /clang-tools-extra/test/clang-tidy/validate-check-names.cpp
parentc0ae1a038f67fdbd79843d26c42b943b1111cd08 (diff)
downloadbcm5719-llvm-d53d2686b31f83143a28d53135daaef595f396de.tar.gz
bcm5719-llvm-d53d2686b31f83143a28d53135daaef595f396de.zip
Implemented clang-tidy configurability via .clang-tidy files.
Summary: This adds a support for the .clang-tidy file reading using FileOptionsProvider, -dump-config option, and changes tests to not depend on default checks set. Reviewers: klimek, bkramer, djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5186 llvm-svn: 217155
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/validate-check-names.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/validate-check-names.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/validate-check-names.cpp b/clang-tools-extra/test/clang-tidy/validate-check-names.cpp
new file mode 100644
index 00000000000..709d9deb20d
--- /dev/null
+++ b/clang-tools-extra/test/clang-tidy/validate-check-names.cpp
@@ -0,0 +1,2 @@
+// Check names may only contain alphanumeric characters, '-', '_', and '.'.
+// RUN: clang-tidy -checks=* -list-checks - -- | grep '^ ' | cut -b5- | not grep -v '^[a-zA-Z0-9_.\-]\+$'
OpenPOWER on IntegriCloud