blob: 1fa16657950589961673c2fd6c3b9e8524590445 [file] [log] [blame]
Kirill Bobyrevee99fd12016-07-15 12:22:38 +00001// RUN: cat %s > %t.cpp
2// RUN: clang-rename -offset=163 -new-name=Bar %t.cpp -i --
3// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
4
5class Baz {};
6
7class Qux {
8 Baz Foo; // CHECK: Baz Bar;
9public:
10 Qux();
11};
12
13Qux::Qux() : Foo() {} // CHECK: Qux::Qux() : Bar() {}
14
15// Use grep -FUbo 'Foo' <file> to get the correct offset of foo when changing
16// this file.