2009-12-07 12:27:33 +03:00
|
|
|
/* Run lines are at the end, since line/column matter in this test. */
|
2010-01-14 00:54:15 +03:00
|
|
|
@interface MyClass { @public }
|
2009-12-07 12:27:33 +03:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyClass
|
|
|
|
@end
|
|
|
|
|
2010-10-12 01:37:58 +04:00
|
|
|
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:2 %s | FileCheck -check-prefix=CHECK-CC1 %s
|
2010-05-28 04:22:41 +04:00
|
|
|
// CHECK-CC1: {TypedText class}{HorizontalSpace }{Placeholder name}
|
2010-01-12 09:38:28 +03: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 12:27:33 +03:00
|
|
|
|
2010-10-12 01:37:58 +04:00
|
|
|
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:3:2 %s | FileCheck -check-prefix=CHECK-CC2 %s
|
2009-12-07 12:27:33 +03:00
|
|
|
// CHECK-CC2: {TypedText end}
|
|
|
|
// CHECK-CC2: {TypedText optional}
|
|
|
|
// CHECK-CC2: {TypedText property}
|
|
|
|
// CHECK-CC2: {TypedText required}
|
|
|
|
|
2010-10-12 01:37:58 +04:00
|
|
|
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:6:2 %s | FileCheck -check-prefix=CHECK-CC3 %s
|
2010-01-12 09:38:28 +03:00
|
|
|
// CHECK-CC3: {TypedText dynamic}{HorizontalSpace }{Placeholder property}
|
2009-12-07 12:27:33 +03:00
|
|
|
// CHECK-CC3: {TypedText end}
|
2010-01-12 09:38:28 +03:00
|
|
|
// CHECK-CC3: {TypedText synthesize}{HorizontalSpace }{Placeholder property}
|
2010-01-14 00:24:21 +03:00
|
|
|
|
2010-10-12 01:37:58 +04:00
|
|
|
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:1 %s | FileCheck -check-prefix=CHECK-CC4 %s
|
2010-05-28 04:22:41 +04:00
|
|
|
// CHECK-CC4: NotImplemented:{TypedText @class}{HorizontalSpace }{Placeholder name}
|
2010-01-14 00:24:21 +03: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 02:24:38 +03:00
|
|
|
// CHECK-CC4: NotImplemented:{TypedText _Bool}
|
2010-01-14 00:24:21 +03:00
|
|
|
// CHECK-CC4: TypedefDecl:{TypedText Class}
|
|
|
|
// CHECK-CC4: TypedefDecl:{TypedText id}
|
|
|
|
// CHECK-CC4: TypedefDecl:{TypedText SEL}
|
|
|
|
|
2010-10-12 01:37:58 +04:00
|
|
|
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:3:1 %s | FileCheck -check-prefix=CHECK-CC5 %s
|
2010-01-14 00:24:21 +03:00
|
|
|
// CHECK-CC5: {TypedText @end}
|
|
|
|
// CHECK-CC5: {TypedText @optional}
|
|
|
|
// CHECK-CC5: {TypedText @property}
|
|
|
|
// CHECK-CC5: {TypedText @required}
|
2010-01-14 00:54:15 +03:00
|
|
|
|
2010-10-12 01:37:58 +04:00
|
|
|
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:23 %s | FileCheck -check-prefix=CHECK-CC6 %s
|
2010-01-14 00:54:15 +03:00
|
|
|
// CHECK-CC6: NotImplemented:{TypedText package}
|
|
|
|
// CHECK-CC6: NotImplemented:{TypedText private}
|
|
|
|
// CHECK-CC6: NotImplemented:{TypedText protected}
|
|
|
|
// CHECK-CC6: NotImplemented:{TypedText public}
|
|
|
|
|
2010-10-12 01:37:58 +04:00
|
|
|
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:22 %s | FileCheck -check-prefix=CHECK-CC7 %s
|
2010-01-14 00:54:15 +03: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}
|