[PATCH] D15528: Teach clang-tidy how to -Werror checks.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 15 08:38:19 PST 2015


aaron.ballman accepted this revision.
aaron.ballman added a reviewer: alexfh.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

Aside from two tiny nits, LGTM. Thank you for working on this, it's a great feature! I think we should add something to the release notes to make sure it gets called out.


================
Comment at: tools/llvm-project/extra/clang-tidy/ClangTidy.cpp:156
@@ -149,1 +155,3 @@
 
+  unsigned WErrorCount() { return WErrors; }
+
----------------
Method can be const.

================
Comment at: tools/llvm-project/extra/test/clang-tidy/werrors-plural.cpp:7
@@ +6,3 @@
+// CHECK-WARN: warning: namespace 'j' not terminated with a closing comment [llvm-namespace-comment]
+// CHECK-WERR: error: namespace 'j' not terminated with a closing comment [llvm-namespace-comment, -Werrors=]
+
----------------
One of these tests should complete the -Werrors= chunk just to be sure it's getting printed properly.


http://reviews.llvm.org/D15528





More information about the cfe-commits mailing list