2009-12-07 17:27:33 +08:00
|
|
|
/* Run lines are at the end, since line/column matter in this test. */
|
2010-01-14 05:54:15 +08:00
|
|
|
@interface MyClass { @public }
|
2009-12-07 17:27:33 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyClass
|
|
|
|
@end
|
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:2:2 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1: {TypedText class}{HorizontalSpace }{Placeholder name}
|
2010-01-12 14:38:28 +08:00
|
|
|
// CHECK-CC1: {TypedText compatibility_alias}{HorizontalSpace }{Placeholder alias}{HorizontalSpace }{Placeholder class}
|
|
|
|
// CHECK-CC1: {TypedText implementation}{HorizontalSpace }{Placeholder class}
|
|
|
|
// CHECK-CC1: {TypedText interface}{HorizontalSpace }{Placeholder class}
|
|
|
|
// CHECK-CC1: {TypedText protocol}{HorizontalSpace }{Placeholder protocol}
|
2009-12-07 17:27:33 +08:00
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:3:2 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC2 %s
|
2009-12-07 17:27:33 +08:00
|
|
|
// CHECK-CC2: {TypedText end}
|
|
|
|
// CHECK-CC2: {TypedText optional}
|
|
|
|
// CHECK-CC2: {TypedText property}
|
|
|
|
// CHECK-CC2: {TypedText required}
|
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:6:2 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC3 %s
|
2010-01-12 14:38:28 +08:00
|
|
|
// CHECK-CC3: {TypedText dynamic}{HorizontalSpace }{Placeholder property}
|
2009-12-07 17:27:33 +08:00
|
|
|
// CHECK-CC3: {TypedText end}
|
2010-01-12 14:38:28 +08:00
|
|
|
// CHECK-CC3: {TypedText synthesize}{HorizontalSpace }{Placeholder property}
|
2010-01-14 05:24:21 +08:00
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:2:1 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC4 %s
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC4: NotImplemented:{TypedText @class}{HorizontalSpace }{Placeholder name}
|
2010-01-14 05:24:21 +08:00
|
|
|
// CHECK-CC4: NotImplemented:{TypedText @compatibility_alias}{HorizontalSpace }{Placeholder alias}{HorizontalSpace }{Placeholder class}
|
|
|
|
// CHECK-CC4: NotImplemented:{TypedText @implementation}{HorizontalSpace }{Placeholder class}
|
|
|
|
// CHECK-CC4: NotImplemented:{TypedText @interface}{HorizontalSpace }{Placeholder class}
|
|
|
|
// CHECK-CC4: NotImplemented:{TypedText @protocol}{HorizontalSpace }{Placeholder protocol}
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4: NotImplemented:{TypedText _Bool}
|
2010-01-14 05:24:21 +08:00
|
|
|
// CHECK-CC4: TypedefDecl:{TypedText Class}
|
|
|
|
// CHECK-CC4: TypedefDecl:{TypedText id}
|
|
|
|
// CHECK-CC4: TypedefDecl:{TypedText SEL}
|
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:3:1 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC5 %s
|
2010-01-14 05:24:21 +08:00
|
|
|
// CHECK-CC5: {TypedText @end}
|
|
|
|
// CHECK-CC5: {TypedText @optional}
|
|
|
|
// CHECK-CC5: {TypedText @property}
|
|
|
|
// CHECK-CC5: {TypedText @required}
|
2010-01-14 05:54:15 +08:00
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:2:23 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC6 %s
|
2010-01-14 05:54:15 +08:00
|
|
|
// CHECK-CC6: NotImplemented:{TypedText package}
|
|
|
|
// CHECK-CC6: NotImplemented:{TypedText private}
|
|
|
|
// CHECK-CC6: NotImplemented:{TypedText protected}
|
|
|
|
// CHECK-CC6: NotImplemented:{TypedText public}
|
|
|
|
|
2010-05-26 05:41:55 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:2:22 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC7 %s
|
2010-01-14 05:54:15 +08:00
|
|
|
// CHECK-CC7: NotImplemented:{TypedText @package}
|
|
|
|
// CHECK-CC7: NotImplemented:{TypedText @private}
|
|
|
|
// CHECK-CC7: NotImplemented:{TypedText @protected}
|
|
|
|
// CHECK-CC7: NotImplemented:{TypedText @public}
|
|
|
|
// CHECK-CC7: NotImplemented:{TypedText _Bool}
|