blob: fed4f5b06c27558a69fdca3ceb704c397be48b40 [file] [log] [blame]
Kirill Bobyrevee99fd12016-07-15 12:22:38 +00001class Baz {};
2
3class Qux {
Kirill Bobyrev77f522c2016-08-10 13:28:30 +00004 Baz Foo; /* Test 1 */ // CHECK: Baz Bar;
Kirill Bobyrevee99fd12016-07-15 12:22:38 +00005public:
6 Qux();
7};
8
Kirill Bobyrev77f522c2016-08-10 13:28:30 +00009Qux::Qux() : Foo() /* Test 2 */ {} // CHECK: Qux::Qux() : Bar() /* Test 2 */ {}
Kirill Bobyrevee99fd12016-07-15 12:22:38 +000010
Kirill Bobyrev77f522c2016-08-10 13:28:30 +000011// Test 1.
12// RUN: clang-rename -offset=33 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
13// Test 2.
14// RUN: clang-rename -offset=118 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
15
16// To find offsets after modifying the file, use:
17// grep -Ubo 'Foo.*' <file>