blob: 78b93e5ea3b961f7868ab47d304b8a559ab4c1d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// RUN: clang-rename -offset=138 -new-name=macro_function %s -- | FileCheck %s
#define moo foo // CHECK: #define moo macro_function
int foo() { // CHECK: int macro_function() {
return 42;
}
void boo(int value) {}
void qoo() {
foo(); // CHECK: macro_function();
boo(foo()); // CHECK: boo(macro_function());
moo();
boo(moo());
}
// Use grep -FUbo 'foo' <file> to get the correct offset of foo when changing
// this file.
|