[clang-tidy] Enable test for http://llvm.org/PR26228

llvm-svn: 310585
This commit is contained in:
Alexander Kornienko 2017-08-10 12:24:52 +00:00
parent ff6b2af499
commit 57fd153c46
1 changed files with 7 additions and 6 deletions

View File

@ -176,12 +176,13 @@ void f(const char *p) {
if (!p)
f("\
");
// CHECK-MESSAGES: :[[@LINE-3]]:10: warning: statement should be inside braces
// CHECK-FIXES: {{^ }}if (!p) {{{$}}
// CHECK-FIXES-NEXT: {{^ }}f("\{{$}}
// CHECK-FIXES-_NEXT: {{^}}");{{$}} FIXME: This breaks (http://llvm.org/PR26228)
// CHECK-FIXES-_NEXT: {{^}}}{{$}}
}
} // end of f
// CHECK-MESSAGES: :[[@LINE-4]]:10: warning: statement should be inside braces
// CHECK-FIXES: {{^}} if (!p) {{{$}}
// CHECK-FIXES-NEXT: {{^}} f("\{{$}}
// CHECK-FIXES-NEXT: {{^}}");{{$}}
// CHECK-FIXES-NEXT: {{^}}}{{$}}
// CHECK-FIXES-NEXT: {{^}}} // end of f{{$}}
#define M(x) x