Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Index/annotate-macro-args.h @ 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 @interface MyClass | |
2 +(void)meth; | |
3 @end | |
4 | |
5 #define MACRO2(x) x | |
6 #define MACRO(x) MACRO2(x) | |
7 | |
8 void test() { | |
9 MACRO([MyClass meth]); | |
10 } | |
11 | |
12 #define INVOKE(METHOD, CLASS) [CLASS METHOD] | |
13 | |
14 void test2() { | |
15 INVOKE(meth, MyClass); | |
16 } |