summaryrefslogtreecommitdiff
path: root/clang/test/Index/annotate-macro-args.h
blob: 40ec8dc0b81fb706fc0dc935901fa3bcfad5938b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@interface MyClass
+(void)meth;
@end

#define MACRO2(x) x
#define MACRO(x) MACRO2(x)

void test() {
  MACRO([MyClass meth]);
}

#define INVOKE(METHOD, CLASS) [CLASS METHOD]

void test2() {
  INVOKE(meth, MyClass);
}