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

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

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

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