blob: 1cdac27ab3b1045e8ca8262d7d347ea21c4ef081 [file] [log] [blame]
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=199 -new-name=macro_function %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | 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.