You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
452 B
15 lines
452 B
4 months ago
|
class Foo { // CHECK: class Bar {
|
||
|
public:
|
||
|
Foo(); /* Test 1 */ // CHECK: Bar();
|
||
|
};
|
||
|
|
||
|
Foo::Foo() /* Test 2 */ {} // CHECK: Bar::Bar() /* Test 2 */ {}
|
||
|
|
||
|
// Test 1.
|
||
|
// RUN: clang-rename -offset=62 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
|
||
|
// Test 2.
|
||
|
// RUN: clang-rename -offset=116 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
|
||
|
|
||
|
// To find offsets after modifying the file, use:
|
||
|
// grep -Ubo 'Foo.*' <file>
|