| 1 |
class A { virtual void foo(); /* Test 1 */ }; // CHECK: class A { virtual void bar(); |
| 2 |
class B : public A { void foo(); /* Test 2 */ }; // CHECK: class B : public A { void bar(); |
| 3 |
class C : public B { void foo(); /* Test 3 */ }; // CHECK: class C : public B { void bar(); |
| 4 |
|
| 5 |
// Test 1. |
| 6 |
// RUN: clang-rename -offset=23 -new-name=bar %s -- | sed 's,//.*,,' | FileCheck %s |
| 7 |
// Test 2. |
| 8 |
// RUN: clang-rename -offset=116 -new-name=bar %s -- | sed 's,//.*,,' | FileCheck %s |
| 9 |
// Test 3. |
| 10 |
// RUN: clang-rename -offset=209 -new-name=bar %s -- | sed 's,//.*,,' | FileCheck %s |
| 11 |
|
| 12 |
// To find offsets after modifying the file, use: |
| 13 |
// grep -Ubo 'foo.*' <file> |