1 class Foo
{ /* Test 1 */ // CHECK: class Bar {
3 Foo() {} // CHECK: Bar() {}
8 operator Foo() /* Test 2 */ const { // CHECK: operator Bar() /* Test 2 */ const {
9 Foo foo
; // CHECK: Bar foo;
16 Foo foo
= static_cast<Foo
>(boo
); // CHECK: Bar foo = static_cast<Bar>(boo);
21 // RUN: clang-rename -offset=7 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
23 // RUN: clang-rename -offset=164 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
25 // To find offsets after modifying the file, use:
26 // grep -Ubo 'Foo.*' <file>