Home | History | Annotate | Download | only in Index
      1 #define IBOutletCollection(ClassName) __attribute__((iboutletcollection(ClassName)))
      2 
      3 @interface Test {
      4   IBOutletCollection(Test) Test *anOutletCollection;
      5 }
      6 @end
      7 
      8 // RUN: c-index-test -cursor-at=%s:4:24 %s | FileCheck -check-prefix=CHECK-CURSOR %s
      9 // CHECK-CURSOR: ObjCClassRef=Test:3:12
     10 
     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)
     21