blob: 6077841ba048e1e65b3db69e58929bdf1eda8051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class Cla
{
int foo; // CHECK: hector;
public:
Cla();
};
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
Cla::Cla()
: foo(0) // CHECK: hector(0)
{
}
// Use grep -FUbo 'foo' <file> to get the correct offset of foo when changing
// this file.
|