Lines Matching full:else

5 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran…  in test_basic1()
7 else in test_basic1()
8 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic1()
16 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic2()
19 else { in test_basic2()
20 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic2()
29 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic3()
32 else in test_basic3()
33 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic3()
43 else { in test_basic4()
52 else { in test_basic5()
62 else { in test_basic6()
72 else in test_basic7()
80 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic8()
83 } else { in test_basic8()
84 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_basic8()
95 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic9()
98 else in test_basic9()
100 } else { in test_basic9()
101 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_basic9()
104 else in test_basic9()
110 // as an `else if`.
115 else in test_basic10()
117 else in test_basic10()
120 else in test_basic10()
127 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic11()
130 else in test_basic11()
134 else in test_basic11()
136 } else { in test_basic11()
137 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_basic11()
140 else in test_basic11()
144 else in test_basic11()
151 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic12()
152 } else { in test_basic12()
153 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_basic12()
160 } else; in test_basic13()
167 else in test_basic14()
174 else in test_basic15()
182 else in test_basic16()
190 else in test_basic17()
201 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: if with identical then and else branches [bugprone-bran… in test_macro1()
203 else in test_macro1()
204 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_macro1()
214 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: if with identical then and else branches [bugprone-bran… in test_macro2()
217 else in test_macro2()
218 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_macro2()
224 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_macro3()
227 else in test_macro3()
228 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_macro3()
235 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_macro4()
237 else in test_macro4()
238 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_macro4()
246 // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: if with identical then and else branches [bugprone-bra… in test_macro5()
248 PASTE_CODE(else) in test_macro5()
249 // CHECK-MESSAGES: :[[@LINE-1]]:14: note: else branch starts here in test_macro5()
253 #define OTHERWISE_INCREASE else out++
258 // CHECK-MESSAGES: :[[@LINE-2]]:3: warning: if with identical then and else branches [bugprone-bran… in test_macro6()
260 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_macro6()
268 else \
274 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_macro7()
276 // CHECK-MESSAGES: :[[@LINE-3]]:3: note: else branch starts here in test_macro7()
286 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_macro9()
288 // CHECK-MESSAGES: :[[@LINE-3]]:3: note: else branch starts here in test_macro9()
296 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_macro10()
299 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_macro10()
308 else if (count == 13) in test_macro11()
310 else in test_macro11()
316 #define ELSE } else { macro
321 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_macro12()
325 ELSE in test_macro12()
326 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_macro12()
327 // CHECK-MESSAGES: :[[@LINE-11]]:16: note: expanded from macro 'ELSE' in test_macro12()
394 else if (in > 55) in test_chain1()
406 else if (in > 55) in test_chain2()
409 else if (in > 42) in test_chain2()
411 else if (in > 28) in test_chain2()
414 else if (in > 12) { in test_chain2()
417 } else if (in > 7) { in test_chain2()
429 } else if (in > 55) { in test_chain3()
433 } else if (in > 42) in test_chain3()
435 else if (in > 28) { in test_chain3()
439 } else if (in > 12) { in test_chain3()
444 } else if (in > 7) { in test_chain3()
459 } else if (in > 55) { in test_chain4()
465 } else if (in > 42) in test_chain4()
469 else if (in > 28) { in test_chain4()
472 } else if (in > 12) { in test_chain4()
477 } else if (in > 7) { in test_chain4()
480 } else if (in > -3) { in test_chain4()
491 else if (in > 55) in test_chain5()
494 else if (in > 42) in test_chain5()
496 else if (in > 28) in test_chain5()
499 else if (in > 12) { in test_chain5()
502 } else { in test_chain5()
514 } else if (in > 55) { in test_chain6()
518 } else if (in > 42) in test_chain6()
520 else if (in > 28) { in test_chain6()
524 } else if (in > 12) { in test_chain6()
529 } else { in test_chain6()
538 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_nested()
539 // CHECK-MESSAGES: :[[@LINE+27]]:5: note: else branch starts here in test_nested()
546 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: if with identical then and else branches [bugprone-bran… in test_nested()
548 else in test_nested()
549 // CHECK-MESSAGES: :[[@LINE-1]]:7: note: else branch starts here in test_nested()
551 } else if (b > 15) { in test_nested()
553 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: if with identical then and else branches [bugprone-bran… in test_nested()
555 else in test_nested()
556 // CHECK-MESSAGES: :[[@LINE-1]]:7: note: else branch starts here in test_nested()
558 } else { in test_nested()
560 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: if with identical then and else branches [bugprone-bran… in test_nested()
562 else in test_nested()
563 // CHECK-MESSAGES: :[[@LINE-1]]:7: note: else branch starts here in test_nested()
566 } else { in test_nested()
573 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: if with identical then and else branches [bugprone-bran… in test_nested()
575 else in test_nested()
576 // CHECK-MESSAGES: :[[@LINE-1]]:7: note: else branch starts here in test_nested()
578 } else if (b > 15) { in test_nested()
580 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: if with identical then and else branches [bugprone-bran… in test_nested()
582 else in test_nested()
583 // CHECK-MESSAGES: :[[@LINE-1]]:7: note: else branch starts here in test_nested()
585 } else { in test_nested()
587 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: if with identical then and else branches [bugprone-bran… in test_nested()
589 else in test_nested()
590 // CHECK-MESSAGES: :[[@LINE-1]]:7: note: else branch starts here in test_nested()
602 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_template_not_instantiated()
604 else in test_template_not_instantiated()
605 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_template_not_instantiated()
613 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_template_instantiated()
615 else in test_template_instantiated()
616 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_template_instantiated()
627 } else { in test_template2()
640 } else { in test_template3()
651 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_template_two_instances()
653 } else { in test_template_two_instances()
654 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_template_two_instances()
666 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: if with identical then and else branches [bugprone-bran… in inline_method()
668 else in inline_method()
669 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in inline_method()
677 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in other_method()
679 } else { in other_method()
680 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in other_method()
875 } else { in interleaved_cases()
954 else if (in > 55) in no_real_body()
957 else if (in > 34) in no_real_body()
1042 } else {
1051 } else {
1063 …// CHECK-MESSAGES: :[[@LINE+2]]:5: warning: if with identical then and else branches [bugprone-bra…
1064 // CHECK-MESSAGES: :[[@LINE+3]]:7: note: else branch starts here
1067 } else {