summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/basic.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-07-29 08:19:24 +0000
committerDaniel Jasper <djasper@google.com>2013-07-29 08:19:24 +0000
commitd07c840e6a125e954bfe015062c861369aae870e (patch)
tree23f7638f25cb4755ed1bfc24aeb2c3b2cc418d67 /clang-tools-extra/test/clang-tidy/basic.cpp
parentbaca389e28985d57f59e42d745696bdf7ed56af2 (diff)
downloadbcm5719-llvm-d07c840e6a125e954bfe015062c861369aae870e.tar.gz
bcm5719-llvm-d07c840e6a125e954bfe015062c861369aae870e.zip
Initial architecture for clang-tidy.
This is the first version of a possible clang-tidy architecture. The purpose of clang-tidy is to detect errors in adhering to common coding patterns, e.g. described in the LLVM Coding Standards. This is still heavily in flux. Review: http://llvm-reviews.chandlerc.com/D884 llvm-svn: 187345
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/basic.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/basic.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/basic.cpp b/clang-tools-extra/test/clang-tidy/basic.cpp
new file mode 100644
index 00000000000..e61b8ebfb13
--- /dev/null
+++ b/clang-tools-extra/test/clang-tidy/basic.cpp
@@ -0,0 +1,7 @@
+// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
+// RUN: clang-tidy %t.cpp -- > %t2.cpp
+// RUN: FileCheck -input-file=%t2.cpp %s
+
+namespace i {
+}
+// CHECK: warning: namespace not terminated with a closing comment
OpenPOWER on IntegriCloud