brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0e073f6 Raw
47 lines · c
1// RUN: clang-refactor local-rename -selection=test:%s -new-name=test -v %s -- | FileCheck %s2 3/*range=*/int test;4 5/*range named=*/int test2;6 7/*range= +1*/int test3;8 9/* range = +100 */int test4;10 11/*range named =+0*/int test5;12 13/*range =->+0:22*/int test6;14 15// CHECK: Test selection group '':16// CHECK-NEXT:   105-10517// CHECK-NEXT:   158-15818// CHECK-NEXT:   197-19719// CHECK-NEXT:   248-25120// CHECK-NEXT: Test selection group 'named':21// CHECK-NEXT:   132-13222// CHECK-NEXT:   218-21823 24// The following invocations are in the default group:25 26// CHECK: invoking action 'local-rename':27// CHECK-NEXT: -selection={{.*}}tool-test-support.c:3:1128 29// CHECK: invoking action 'local-rename':30// CHECK-NEXT: -selection={{.*}}tool-test-support.c:7:1531 32// CHECK: invoking action 'local-rename':33// CHECK-NEXT: -selection={{.*}}tool-test-support.c:9:2934 35// CHECK: invoking action 'local-rename':36// CHECK-NEXT: -selection={{.*}}tool-test-support.c:13:19 -> {{.*}}tool-test-support.c:13:2237 38// The following invocations are in the 'named' group, and they follow39// the default invocation even if some of their ranges occur prior to the40// ranges from the default group because the groups are tested one-by-one:41 42// CHECK: invoking action 'local-rename':43// CHECK-NEXT: -selection={{.*}}tool-test-support.c:5:1744 45// CHECK: invoking action 'local-rename':46// CHECK-NEXT: -selection={{.*}}tool-test-support.c:11:2047