@@ -11,28 +11,28 @@ void f() {
1111 if (cond (" if0" ) /* comment*/ ) do_something (" if-same-line" );
1212 else {
1313 }
14- // CHECK-MESSAGES: :[[@LINE-3]]:31: warning: <message> [readability-inconsistent-ifelse-braces]
14+ // CHECK-MESSAGES: :[[@LINE-3]]:31: warning: statement should have braces [readability-inconsistent-ifelse-braces]
1515 // CHECK-FIXES: if (cond("if0") /*comment*/) { do_something("if-same-line");
1616 // CHECK-FIXES: } else {
1717
1818 if (cond (" if0.1" ) /* comment*/ ) {
1919 } else do_something (" else-same-line" );
20- // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: <message> [readability-inconsistent-ifelse-braces]
20+ // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: statement should have braces [readability-inconsistent-ifelse-braces]
2121 // CHECK-FIXES: } else { do_something("else-same-line");
2222 // CHECK-FIXES: }
2323
2424 if (cond (" if1" ))
2525 do_something (" if-single-line" );
2626 else {
2727 }
28- // CHECK-MESSAGES: :[[@LINE-4]]:19: warning: <message> [readability-inconsistent-ifelse-braces]
28+ // CHECK-MESSAGES: :[[@LINE-4]]:19: warning: statement should have braces [readability-inconsistent-ifelse-braces]
2929 // CHECK-FIXES: if (cond("if1")) {
3030 // CHECK-FIXES: } else {
3131
3232 if (cond (" if1.1" )) {
3333 } else
3434 do_something (" else-single-line" );
35- // CHECK-MESSAGES: :[[@LINE-2]]:9: warning: <message> [readability-inconsistent-ifelse-braces]
35+ // CHECK-MESSAGES: :[[@LINE-2]]:9: warning: statement should have braces [readability-inconsistent-ifelse-braces]
3636 // CHECK-FIXES: } else {
3737 // CHECK-FIXES: }
3838
@@ -41,38 +41,38 @@ void f() {
4141 do_something (" if-multi-line" );
4242 else {
4343 }
44- // CHECK-MESSAGES: :[[@LINE-5]]:31: warning: <message> [readability-inconsistent-ifelse-braces]
44+ // CHECK-MESSAGES: :[[@LINE-5]]:31: warning: statement should have braces [readability-inconsistent-ifelse-braces]
4545 // CHECK-FIXES: if (cond("if2") /*comment*/) {
4646 // CHECK-FIXES: } else {
4747
4848 if (cond (" if2.1" ) /* comment*/ ) {
4949 } else
5050 // some comment
5151 do_something (" else-multi-line" );
52- // CHECK-MESSAGES: :[[@LINE-3]]:9: warning: <message> [readability-inconsistent-ifelse-braces]
52+ // CHECK-MESSAGES: :[[@LINE-3]]:9: warning: statement should have braces [readability-inconsistent-ifelse-braces]
5353 // CHECK-FIXES: } else {
5454 // CHECK-FIXES: }
5555
5656 if (cond (" if3" )) do_something (" elseif-same-line" );
5757 else if (cond (" if3" )) {
5858 } else {
5959 }
60- // CHECK-MESSAGES: :[[@LINE-4]]:19: warning: <message> [readability-inconsistent-ifelse-braces]
60+ // CHECK-MESSAGES: :[[@LINE-4]]:19: warning: statement should have braces [readability-inconsistent-ifelse-braces]
6161 // CHECK-FIXES: if (cond("if3")) { do_something("elseif-same-line");
6262 // CHECK-FIXES: } else if (cond("if3")) {
6363
6464 if (cond (" if3.1" )) {
6565 } else if (cond (" if3.1" )) do_something (" elseif-same-line" );
6666 else {
6767 }
68- // CHECK-MESSAGES: :[[@LINE-3]]:28: warning: <message> [readability-inconsistent-ifelse-braces]
68+ // CHECK-MESSAGES: :[[@LINE-3]]:28: warning: statement should have braces [readability-inconsistent-ifelse-braces]
6969 // CHECK-FIXES: } else if (cond("if3.1")) { do_something("elseif-same-line");
7070 // CHECK-FIXES: } else {
7171
7272 if (cond (" if3.2" )) {
7373 } else if (cond (" if3.2" )) {
7474 } else do_something (" else-same-line" );
75- // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: <message> [readability-inconsistent-ifelse-braces]
75+ // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: statement should have braces [readability-inconsistent-ifelse-braces]
7676 // CHECK-FIXES: } else { do_something("else-same-line");
7777 // CHECK-FIXES: }
7878
@@ -83,8 +83,8 @@ void f() {
8383 }
8484 else {
8585 }
86- // CHECK-MESSAGES: :[[@LINE-7]]:25: warning: <message> [readability-inconsistent-ifelse-braces]
87- // CHECK-MESSAGES: :[[@LINE-7]]:27: warning: <message> [readability-inconsistent-ifelse-braces]
86+ // CHECK-MESSAGES: :[[@LINE-7]]:25: warning: statement should have braces [readability-inconsistent-ifelse-braces]
87+ // CHECK-MESSAGES: :[[@LINE-7]]:27: warning: statement should have braces [readability-inconsistent-ifelse-braces]
8888 // CHECK-FIXES: if (cond("if4-outer")) {
8989 // CHECK-FIXES: if (cond("if4-inner")) {
9090 // CHECK-FIXES: } else {
@@ -94,27 +94,27 @@ void f() {
9494 do_something (" if-single-line" );
9595 else if (cond (" if5" )) {
9696 }
97- // CHECK-MESSAGES: :[[@LINE-4]]:19: warning: <message> [readability-inconsistent-ifelse-braces]
97+ // CHECK-MESSAGES: :[[@LINE-4]]:19: warning: statement should have braces [readability-inconsistent-ifelse-braces]
9898 // CHECK-FIXES: if (cond("if5")) {
9999 // CHECK-FIXES: } else if (cond("if5")) {
100100
101101 if (cond (" if5.1" )) {
102102 } else if (cond (" if5.1" ))
103103 do_something (" elseif-single-line" );
104- // CHECK-MESSAGES: :[[@LINE-2]]:28: warning: <message> [readability-inconsistent-ifelse-braces]
104+ // CHECK-MESSAGES: :[[@LINE-2]]:28: warning: statement should have braces [readability-inconsistent-ifelse-braces]
105105 // CHECK-FIXES: } else if (cond("if5.1")) {
106106 // CHECK-FIXES: }
107107
108108 if (MACRO_COND (" if6" )) MACRO_FUN;
109109 else {
110110 }
111- // CHECK-MESSAGES: :[[@LINE-3]]:20: warning: <message> [readability-inconsistent-ifelse-braces]
111+ // CHECK-MESSAGES: :[[@LINE-3]]:20: warning: statement should have braces [readability-inconsistent-ifelse-braces]
112112 // CHECK-FIXES: if (MACRO_COND("if6")) { MACRO_FUN;
113113 // CHECK-FIXES: } else {
114114
115115 if (MACRO_COND (" if6" )) {
116116 } else MACRO_FUN;
117- // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: <message> [readability-inconsistent-ifelse-braces]
117+ // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: statement should have braces [readability-inconsistent-ifelse-braces]
118118 // CHECK-FIXES: } else { MACRO_FUN;
119119}
120120
0 commit comments