[PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 15 01:32:01 PST 2016
hokein marked an inline comment as done.
================
Comment at: test/clang-tidy/readability-braces-around-statements-assert-failure.cpp:1
@@ -1,2 +1,2 @@
-// RUN: %check_clang_tidy %s readability-braces-around-statements %t
+// RUN: clang-tidy -checks='-*,readability-braces-around-statements' %s --
----------------
This is the simplest way to ignore all the compilation errors while keeping assert failure in the test. The `check-clang-tools` test script handles all stuff for us.
================
Comment at: test/clang-tidy/readability-braces-around-statements-assert-failure.cpp:7
@@ -7,1 +6,3 @@
}
+
+void test_failure2() {
----------------
Reduce to the minimal test case now. C-Reduce is a useful tool :D.
http://reviews.llvm.org/D17134
More information about the cfe-commits
mailing list