Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 1 | /* Run lines are at the end, since line/column matter in this test. */ |
Douglas Gregor | c38c3e1 | 2010-01-13 21:54:15 +0000 | [diff] [blame] | 2 | @interface MyClass { @public } |
Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 3 | @end |
| 4 | |
| 5 | @implementation MyClass |
| 6 | @end |
| 7 | |
Douglas Gregor | 32be4a5 | 2010-10-11 21:37:58 +0000 | [diff] [blame] | 8 | // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:2 %s | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | c8bddde | 2010-05-28 00:22:41 +0000 | [diff] [blame] | 9 | // CHECK-CC1: {TypedText class}{HorizontalSpace }{Placeholder name} |
Douglas Gregor | 834389b | 2010-01-12 06:38:28 +0000 | [diff] [blame] | 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} |
Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 14 | |
Douglas Gregor | 32be4a5 | 2010-10-11 21:37:58 +0000 | [diff] [blame] | 15 | // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:3:2 %s | FileCheck -check-prefix=CHECK-CC2 %s |
Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 16 | // CHECK-CC2: {TypedText end} |
| 17 | // CHECK-CC2: {TypedText optional} |
| 18 | // CHECK-CC2: {TypedText property} |
| 19 | // CHECK-CC2: {TypedText required} |
| 20 | |
Douglas Gregor | 32be4a5 | 2010-10-11 21:37:58 +0000 | [diff] [blame] | 21 | // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:6:2 %s | FileCheck -check-prefix=CHECK-CC3 %s |
Douglas Gregor | 834389b | 2010-01-12 06:38:28 +0000 | [diff] [blame] | 22 | // CHECK-CC3: {TypedText dynamic}{HorizontalSpace }{Placeholder property} |
Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 23 | // CHECK-CC3: {TypedText end} |
Douglas Gregor | 834389b | 2010-01-12 06:38:28 +0000 | [diff] [blame] | 24 | // CHECK-CC3: {TypedText synthesize}{HorizontalSpace }{Placeholder property} |
Douglas Gregor | b6ac245 | 2010-01-13 21:24:21 +0000 | [diff] [blame] | 25 | |
Douglas Gregor | 32be4a5 | 2010-10-11 21:37:58 +0000 | [diff] [blame] | 26 | // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:1 %s | FileCheck -check-prefix=CHECK-CC4 %s |
Douglas Gregor | c8bddde | 2010-05-28 00:22:41 +0000 | [diff] [blame] | 27 | // CHECK-CC4: NotImplemented:{TypedText @class}{HorizontalSpace }{Placeholder name} |
Douglas Gregor | b6ac245 | 2010-01-13 21:24:21 +0000 | [diff] [blame] | 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} |
Douglas Gregor | ab0b4f1 | 2010-01-13 23:24:38 +0000 | [diff] [blame] | 32 | // CHECK-CC4: NotImplemented:{TypedText _Bool} |
Douglas Gregor | b6ac245 | 2010-01-13 21:24:21 +0000 | [diff] [blame] | 33 | // CHECK-CC4: TypedefDecl:{TypedText Class} |
| 34 | // CHECK-CC4: TypedefDecl:{TypedText id} |
| 35 | // CHECK-CC4: TypedefDecl:{TypedText SEL} |
Douglas Gregor | b6ac245 | 2010-01-13 21:24:21 +0000 | [diff] [blame] | 36 | |
Douglas Gregor | 32be4a5 | 2010-10-11 21:37:58 +0000 | [diff] [blame] | 37 | // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:3:1 %s | FileCheck -check-prefix=CHECK-CC5 %s |
Douglas Gregor | b6ac245 | 2010-01-13 21:24:21 +0000 | [diff] [blame] | 38 | // CHECK-CC5: {TypedText @end} |
| 39 | // CHECK-CC5: {TypedText @optional} |
| 40 | // CHECK-CC5: {TypedText @property} |
| 41 | // CHECK-CC5: {TypedText @required} |
Douglas Gregor | c38c3e1 | 2010-01-13 21:54:15 +0000 | [diff] [blame] | 42 | |
Douglas Gregor | 32be4a5 | 2010-10-11 21:37:58 +0000 | [diff] [blame] | 43 | // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:23 %s | FileCheck -check-prefix=CHECK-CC6 %s |
Douglas Gregor | c38c3e1 | 2010-01-13 21:54:15 +0000 | [diff] [blame] | 44 | // CHECK-CC6: NotImplemented:{TypedText package} |
| 45 | // CHECK-CC6: NotImplemented:{TypedText private} |
| 46 | // CHECK-CC6: NotImplemented:{TypedText protected} |
| 47 | // CHECK-CC6: NotImplemented:{TypedText public} |
| 48 | |
Douglas Gregor | 32be4a5 | 2010-10-11 21:37:58 +0000 | [diff] [blame] | 49 | // RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:2:22 %s | FileCheck -check-prefix=CHECK-CC7 %s |
Douglas Gregor | c38c3e1 | 2010-01-13 21:54:15 +0000 | [diff] [blame] | 50 | // CHECK-CC7: NotImplemented:{TypedText @package} |
| 51 | // CHECK-CC7: NotImplemented:{TypedText @private} |
| 52 | // CHECK-CC7: NotImplemented:{TypedText @protected} |
| 53 | // CHECK-CC7: NotImplemented:{TypedText @public} |
| 54 | // CHECK-CC7: NotImplemented:{TypedText _Bool} |