[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / IBOutletCollection.m
blob1b5d62c7ae5a3ae5df96d37bfc0e7eea1d36f73b
1 #define IBOutletCollection(ClassName) __attribute__((iboutletcollection(ClassName)))
3 @interface Test {
4   IBOutletCollection(Test) Test *anOutletCollection;
6 @end
8 // RUN: c-index-test -cursor-at=%s:4:24 %s | FileCheck -check-prefix=CHECK-CURSOR %s
9 // CHECK-CURSOR: ObjCClassRef=Test:3:12
11 // RUN: c-index-test -test-annotate-tokens=%s:4:1:5:1 %s | FileCheck -check-prefix=CHECK-TOK %s
12 // CHECK-TOK: Identifier: "IBOutletCollection" [4:3 - 4:21] macro expansion=IBOutletCollection:1:9
13 // FIXME: The following token should belong to the macro expansion cursor.
14 // CHECK-TOK: Punctuation: "(" [4:21 - 4:22] attribute(iboutletcollection)= [IBOutletCollection=ObjCInterface]
15 // CHECK-TOK: Identifier: "Test" [4:22 - 4:26] ObjCClassRef=Test:3:12
16 // FIXME: The following token should belong to the macro expansion cursor.
17 // CHECK-TOK: Punctuation: ")" [4:26 - 4:27]
18 // CHECK-TOK: Identifier: "Test" [4:28 - 4:32] ObjCClassRef=Test:3:12
19 // CHECK-TOK: Punctuation: "*" [4:33 - 4:34] ObjCIvarDecl=anOutletCollection:4:34 (Definition)
20 // CHECK-TOK: Identifier: "anOutletCollection" [4:34 - 4:52] ObjCIvarDecl=anOutletCollection:4:34 (Definition)