summaryrefslogtreecommitdiff
path: root/clang/test/Index/get-cursor-macro-args.m
blob: 4945fd389ad3ce77b9bb1d4424a7e0c7194208f6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Test without PCH
// RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
// RUN:              -cursor-at=%S/get-cursor-macro-args.h:9:21 \
// RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:12 \
// RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:20 \
// RUN:       %s -include get-cursor-macro-args.h | FileCheck %s

// Test with PCH
// RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h
// RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
// RUN:              -cursor-at=%S/get-cursor-macro-args.h:9:21 \
// RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:12 \
// RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:20 \
// RUN:       %s -include-pch %t.pch | FileCheck %s

// CHECK:      ObjCClassRef=MyClass:1:12
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
// CHECK-NEXT: ObjCClassRef=MyClass:1:12