2011-08-17 08:31:25 +08:00
|
|
|
// 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 \
|
2012-10-20 08:51:32 +08:00
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:9 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:22 \
|
2011-08-17 08:31:25 +08:00
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \
|
2017-12-12 02:14:51 +08:00
|
|
|
// RUN: %s -include %S/get-cursor-macro-args.h | FileCheck %s
|
2011-08-17 08:31:25 +08:00
|
|
|
|
|
|
|
// Test with PCH
|
2017-12-12 02:14:51 +08:00
|
|
|
// RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h
|
2011-08-17 08:31:25 +08:00
|
|
|
// 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 \
|
2012-10-20 08:51:32 +08:00
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:9 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:22 \
|
2011-08-17 08:31:25 +08:00
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \
|
2017-12-12 02:14:51 +08:00
|
|
|
// RUN: %s -include-pch %t.pch | FileCheck %s
|
2011-08-17 08:31:25 +08:00
|
|
|
|
|
|
|
// CHECK: ObjCClassRef=MyClass:1:12
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
|
|
|
|
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
|
2012-10-20 08:51:32 +08:00
|
|
|
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
|
|
|
|
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
|
2011-08-17 08:31:25 +08:00
|
|
|
// CHECK-NEXT: ObjCClassRef=MyClass:1:12
|