@@ -388,7 +388,7 @@ void test_macro13(int in, int &out) {
388
388
389
389
void test_chain1 (int in, int &out) {
390
390
if (in > 77 )
391
- // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
391
+ // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch body in conditional chain [bugprone-branch-clone]
392
392
out++;
393
393
// CHECK-MESSAGES: :[[@LINE-1]]:10: note: end of the original
394
394
else if (in > 55 )
@@ -400,7 +400,7 @@ void test_chain1(int in, int &out) {
400
400
401
401
void test_chain2 (int in, int &out) {
402
402
if (in > 77 )
403
- // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
403
+ // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch body in conditional chain [bugprone-branch-clone]
404
404
out++;
405
405
// CHECK-MESSAGES: :[[@LINE-1]]:10: note: end of the original
406
406
else if (in > 55 )
@@ -422,7 +422,7 @@ void test_chain2(int in, int &out) {
422
422
423
423
void test_chain3 (int in, int &out) {
424
424
if (in > 77 ) {
425
- // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch in conditional chain [bugprone-branch-clone]
425
+ // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch body in conditional chain [bugprone-branch-clone]
426
426
out++;
427
427
out++;
428
428
// CHECK-MESSAGES: :[[@LINE+1]]:4: note: end of the original
@@ -452,7 +452,7 @@ void test_chain3(int in, int &out) {
452
452
// describes all branches of the first one before mentioning the second one.
453
453
void test_chain4 (int in, int &out) {
454
454
if (in > 77 ) {
455
- // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch in conditional chain [bugprone-branch-clone]
455
+ // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch body in conditional chain [bugprone-branch-clone]
456
456
out++;
457
457
out++;
458
458
// CHECK-MESSAGES: :[[@LINE+1]]:4: note: end of the original
@@ -463,7 +463,7 @@ void test_chain4(int in, int &out) {
463
463
out++;
464
464
out++;
465
465
} else if (in > 42 )
466
- // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
466
+ // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch body in conditional chain [bugprone-branch-clone]
467
467
out--;
468
468
// CHECK-MESSAGES: :[[@LINE-1]]:10: note: end of the original
469
469
else if (in > 28 ) {
@@ -485,7 +485,7 @@ void test_chain4(int in, int &out) {
485
485
486
486
void test_chain5 (int in, int &out) {
487
487
if (in > 77 )
488
- // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
488
+ // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch body in conditional chain [bugprone-branch-clone]
489
489
out++;
490
490
// CHECK-MESSAGES: :[[@LINE-1]]:10: note: end of the original
491
491
else if (in > 55 )
@@ -507,7 +507,7 @@ void test_chain5(int in, int &out) {
507
507
508
508
void test_chain6 (int in, int &out) {
509
509
if (in > 77 ) {
510
- // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch in conditional chain [bugprone-branch-clone]
510
+ // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch body in conditional chain [bugprone-branch-clone]
511
511
out++;
512
512
out++;
513
513
// CHECK-MESSAGES: :[[@LINE+1]]:4: note: end of the original
@@ -538,7 +538,7 @@ void test_nested(int a, int b, int c, int &out) {
538
538
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-branch-clone]
539
539
// CHECK-MESSAGES: :[[@LINE+27]]:5: note: else branch starts here
540
540
if (b > 5 ) {
541
- // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch in conditional chain [bugprone-branch-clone]
541
+ // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch body in conditional chain [bugprone-branch-clone]
542
542
// CHECK-MESSAGES: :[[@LINE+9]]:6: note: end of the original
543
543
// CHECK-MESSAGES: :[[@LINE+8]]:24: note: clone 1 starts here
544
544
// CHECK-MESSAGES: :[[@LINE+14]]:12: note: clone 2 starts here
@@ -565,7 +565,7 @@ void test_nested(int a, int b, int c, int &out) {
565
565
}
566
566
} else {
567
567
if (b > 5 ) {
568
- // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch in conditional chain [bugprone-branch-clone]
568
+ // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: repeated branch body in conditional chain [bugprone-branch-clone]
569
569
// CHECK-MESSAGES: :[[@LINE+9]]:6: note: end of the original
570
570
// CHECK-MESSAGES: :[[@LINE+8]]:24: note: clone 1 starts here
571
571
// CHECK-MESSAGES: :[[@LINE+14]]:12: note: clone 2 starts here
@@ -948,7 +948,7 @@ char no_real_body(int in, int &out) {
948
948
return ' A' ;
949
949
950
950
if (in > 77 )
951
- // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
951
+ // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: repeated branch body in conditional chain [bugprone-branch-clone]
952
952
out++;
953
953
// CHECK-MESSAGES: :[[@LINE-1]]:10: note: end of the original
954
954
else if (in > 55 )
0 commit comments