Saleem Abdulrasool | 8357ccf7 | 2016-07-27 04:43:15 +0000 | [diff] [blame] | 1 | // RUN: clang-rename -offset=102 -new-name=Bar %s -- | FileCheck %s |
Kirill Bobyrev | ee99fd1 | 2016-07-15 12:22:38 +0000 | [diff] [blame] | 2 | |
3 | class Baz {}; | ||||
4 | |||||
5 | class Qux { | ||||
6 | Baz Foo; // CHECK: Baz Bar; | ||||
7 | public: | ||||
8 | Qux(); | ||||
9 | }; | ||||
10 | |||||
11 | Qux::Qux() : Foo() {} // CHECK: Qux::Qux() : Bar() {} | ||||
12 | |||||
13 | // Use grep -FUbo 'Foo' <file> to get the correct offset of foo when changing | ||||
14 | // this file. |