complete-at-directives.m revision b6ac2451bfed36206c5cec7217372c4299f67f2b
1/* Run lines are at the end, since line/column matter in this test. */ 2@interface MyClass { } 3@end 4 5@implementation MyClass 6@end 7 8// RUN: c-index-test -code-completion-at=%s:2:2 %s | FileCheck -check-prefix=CHECK-CC1 %s 9// CHECK-CC1: {TypedText class}{HorizontalSpace }{Placeholder identifier}{SemiColon ;} 10// CHECK-CC1: {TypedText compatibility_alias}{HorizontalSpace }{Placeholder alias}{HorizontalSpace }{Placeholder class} 11// CHECK-CC1: {TypedText implementation}{HorizontalSpace }{Placeholder class} 12// CHECK-CC1: {TypedText interface}{HorizontalSpace }{Placeholder class} 13// CHECK-CC1: {TypedText protocol}{HorizontalSpace }{Placeholder protocol} 14 15// RUN: c-index-test -code-completion-at=%s:3:2 %s | FileCheck -check-prefix=CHECK-CC2 %s 16// CHECK-CC2: {TypedText end} 17// CHECK-CC2: {TypedText optional} 18// CHECK-CC2: {TypedText property} 19// CHECK-CC2: {TypedText required} 20 21// RUN: c-index-test -code-completion-at=%s:6:2 %s | FileCheck -check-prefix=CHECK-CC3 %s 22// CHECK-CC3: {TypedText dynamic}{HorizontalSpace }{Placeholder property} 23// CHECK-CC3: {TypedText end} 24// CHECK-CC3: {TypedText synthesize}{HorizontalSpace }{Placeholder property} 25 26// RUN: c-index-test -code-completion-at=%s:2:1 %s | FileCheck -check-prefix=CHECK-CC4 %s 27// CHECK-CC4: NotImplemented:{TypedText @class}{HorizontalSpace }{Placeholder identifier}{SemiColon ;} 28// CHECK-CC4: NotImplemented:{TypedText @compatibility_alias}{HorizontalSpace }{Placeholder alias}{HorizontalSpace }{Placeholder class} 29// CHECK-CC4: NotImplemented:{TypedText @implementation}{HorizontalSpace }{Placeholder class} 30// CHECK-CC4: NotImplemented:{TypedText @interface}{HorizontalSpace }{Placeholder class} 31// CHECK-CC4: NotImplemented:{TypedText @protocol}{HorizontalSpace }{Placeholder protocol} 32// CHECK-CC4: TypedefDecl:{TypedText Class} 33// CHECK-CC4: TypedefDecl:{TypedText id} 34// CHECK-CC4: TypedefDecl:{TypedText SEL} 35// CHECK-CC4: NotImplemented:{TypedText _Bool} 36 37// RUN: c-index-test -code-completion-at=%s:3:1 %s | FileCheck -check-prefix=CHECK-CC5 %s 38// CHECK-CC5: {TypedText @end} 39// CHECK-CC5: {TypedText @optional} 40// CHECK-CC5: {TypedText @property} 41// CHECK-CC5: {TypedText @required} 42// CHECK-CC5: TypedefDecl:{TypedText Class} 43// CHECK-CC5: TypedefDecl:{TypedText id} 44// CHECK-CC5: ObjCInterfaceDecl:{TypedText MyClass} 45// CHECK-CC5: TypedefDecl:{TypedText SEL} 46// CHECK-CC5: NotImplemented:{TypedText _Bool} 47