blob: 811bca00efb05d801369df5086a18ff012cab093 [file] [log] [blame]
Douglas Gregorc464ae82009-12-07 09:27:33 +00001/* Run lines are at the end, since line/column matter in this test. */
Douglas Gregorc38c3e12010-01-13 21:54:15 +00002@interface MyClass { @public }
Douglas Gregorc464ae82009-12-07 09:27:33 +00003@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
Douglas Gregorfe0bdba2010-04-06 20:11:37 +00009// CHECK-CC1: {TypedText class}{HorizontalSpace }{Placeholder identifier}
Douglas Gregor834389b2010-01-12 06:38:28 +000010// 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}
Douglas Gregorc464ae82009-12-07 09:27:33 +000014
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
Douglas Gregor834389b2010-01-12 06:38:28 +000022// CHECK-CC3: {TypedText dynamic}{HorizontalSpace }{Placeholder property}
Douglas Gregorc464ae82009-12-07 09:27:33 +000023// CHECK-CC3: {TypedText end}
Douglas Gregor834389b2010-01-12 06:38:28 +000024// CHECK-CC3: {TypedText synthesize}{HorizontalSpace }{Placeholder property}
Douglas Gregorb6ac2452010-01-13 21:24:21 +000025
26// RUN: c-index-test -code-completion-at=%s:2:1 %s | FileCheck -check-prefix=CHECK-CC4 %s
Douglas Gregorfe0bdba2010-04-06 20:11:37 +000027// CHECK-CC4: NotImplemented:{TypedText @class}{HorizontalSpace }{Placeholder identifier}
Douglas Gregorb6ac2452010-01-13 21:24:21 +000028// 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}
Douglas Gregorab0b4f12010-01-13 23:24:38 +000032// CHECK-CC4: NotImplemented:{TypedText _Bool}
Douglas Gregorb6ac2452010-01-13 21:24:21 +000033// CHECK-CC4: TypedefDecl:{TypedText Class}
34// CHECK-CC4: TypedefDecl:{TypedText id}
35// CHECK-CC4: TypedefDecl:{TypedText SEL}
Douglas Gregorb6ac2452010-01-13 21:24:21 +000036
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}
Douglas Gregorab0b4f12010-01-13 23:24:38 +000042// CHECK-CC5: NotImplemented:{TypedText _Bool}
Douglas Gregorb6ac2452010-01-13 21:24:21 +000043// CHECK-CC5: TypedefDecl:{TypedText Class}
44// CHECK-CC5: TypedefDecl:{TypedText id}
45// CHECK-CC5: ObjCInterfaceDecl:{TypedText MyClass}
46// CHECK-CC5: TypedefDecl:{TypedText SEL}
Douglas Gregorc38c3e12010-01-13 21:54:15 +000047
48// RUN: c-index-test -code-completion-at=%s:2:23 %s | FileCheck -check-prefix=CHECK-CC6 %s
49// CHECK-CC6: NotImplemented:{TypedText package}
50// CHECK-CC6: NotImplemented:{TypedText private}
51// CHECK-CC6: NotImplemented:{TypedText protected}
52// CHECK-CC6: NotImplemented:{TypedText public}
53
54// RUN: c-index-test -code-completion-at=%s:2:22 %s | FileCheck -check-prefix=CHECK-CC7 %s
55// CHECK-CC7: NotImplemented:{TypedText @package}
56// CHECK-CC7: NotImplemented:{TypedText @private}
57// CHECK-CC7: NotImplemented:{TypedText @protected}
58// CHECK-CC7: NotImplemented:{TypedText @public}
59// CHECK-CC7: NotImplemented:{TypedText _Bool}