[PATCH] D12446: [PATCH] Enable clang-tidy misc-static-assert for C11

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 31 08:43:39 PDT 2015


aaron.ballman added inline comments.

================
Comment at: test/clang-tidy/misc-static-assert-c99.c:2
@@ +1,3 @@
+// RUN: %python %S/check_clang_tidy.py %s misc-static-assert %t -- -std=c99
+
+void abort() {}
----------------
alexfh wrote:
> klimek wrote:
> > aaron.ballman wrote:
> > > I am not certain how to accomplish this with the python script. Or are you thinking I should run clang-tidy directly and use "| count 0" ?
> > Phab test.
> I was thinking about testing c11 mode using the script and c99 mode can run clang-tidy directly (without `-fix`) and use `| count 0`, `| grep -v 'warning:'` or anything else with the same meaning.
Phab test.


http://reviews.llvm.org/D12446





More information about the cfe-commits mailing list