Mercurial > hg > CbC > CbC_llvm
comparison clang/test/clang-rename/FunctionMacro.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 #define moo foo // CHECK: #define moo macro_function | |
2 | |
3 int foo() /* Test 1 */ { // CHECK: int macro_function() /* Test 1 */ { | |
4 return 42; | |
5 } | |
6 | |
7 void boo(int value) {} | |
8 | |
9 void qoo() { | |
10 foo(); // CHECK: macro_function(); | |
11 boo(foo()); // CHECK: boo(macro_function()); | |
12 moo(); | |
13 boo(moo()); | |
14 } | |
15 | |
16 // Test 1. | |
17 // RUN: clang-rename -offset=68 -new-name=macro_function %s -- | sed 's,//.*,,' | FileCheck %s | |
18 | |
19 // To find offsets after modifying the file, use: | |
20 // grep -Ubo 'foo.*' <file> |