blob: 2a0cd870438d0f6898c69975a9af9324c3d00881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=208 -new-name=Z %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
#define Y X // CHECK: #define Y Z
void foo(int value) {}
void macro() {
int X; // CHECK: int Z;
X = 42; // CHECK: Z = 42;
Y -= 0;
foo(X); // CHECK: foo(Z);
foo(Y);
}
// Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing
// this file.
|