summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/CtorInitializer.cpp
blob: 1fa16657950589961673c2fd6c3b9e8524590445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=163 -new-name=Bar %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s

class Baz {};

class Qux {
  Baz Foo;            // CHECK: Baz Bar;
public:
  Qux();
};

Qux::Qux() : Foo() {} // CHECK: Qux::Qux() : Bar() {}

// Use grep -FUbo 'Foo' <file> to get the correct offset of foo when changing
// this file.
OpenPOWER on IntegriCloud