2 @property (readonly) id prop;
7 @property (assign,readwrite) id prop;
11 @synthesize prop = _prop;
15 __attribute__((something)) @interface I2 @end
19 @property (assign,readwrite) id auto_prop;
36 @property (assign, nonatomic) id prop;
42 @synthesize prop = _prop;
46 -(void)setProp:(id)p {
53 @property (class) int c;
56 // RUN: c-index-test -index-file %s -target x86_64-apple-macosx10.7 > %t
57 // RUN: FileCheck %s -input-file=%t
58 // CHECK: [indexDeclaration]: kind: objc-class | name: I | {{.*}} | loc: 1:12
59 // CHECK: [indexDeclaration]: kind: objc-instance-method | name: prop | {{.*}} | loc: 3:7
60 // CHECK: [indexDeclaration]: kind: objc-property | name: prop | {{.*}} | loc: 2:25
61 // CHECK: [indexDeclaration]: kind: objc-category | name: | {{.*}} | loc: 6:12
62 // CHECK: [indexDeclaration]: kind: objc-instance-method | name: setProp: | {{.*}} | loc: 7:33
63 // CHECK: [indexDeclaration]: kind: objc-property | name: prop | {{.*}} | loc: 7:33
65 // CHECK: [indexDeclaration]: kind: objc-instance-method | name: prop | {{.*}} | loc: 11:13 | {{.*}} | lexical-container: [I:10:17]
66 // CHECK: [indexDeclaration]: kind: objc-instance-method | name: setProp: | {{.*}} | loc: 11:13 | {{.*}} | lexical-container: [I:10:17]
67 // CHECK: [indexDeclaration]: kind: objc-ivar | name: _prop | {{.*}} | loc: 11:20
69 // CHECK: [indexDeclaration]: kind: objc-ivar | name: _auto_prop | {{.*}} | loc: 19:33
70 // CHECK: [indexEntityReference]: kind: objc-ivar | name: _auto_prop | {{.*}} | loc: 24:3
72 // CHECK: [indexDeclaration]: kind: function | name: test1 | {{.*}} | loc: 28:5
73 // CHECK: [indexDeclaration]: kind: variable | name: extvar | {{.*}} | loc: 29:14
74 // CHECK: [indexEntityReference]: kind: variable | name: extvar | {{.*}} | loc: 30:3
75 // CHECK: [indexDeclaration]: kind: function | name: extfn | {{.*}} | loc: 31:14
76 // CHECK: [indexEntityReference]: kind: function | name: extfn | {{.*}} | loc: 32:10
78 // CHECK: [indexDeclaration]: kind: objc-class | name: I4 | {{.*}} | loc: 35:12
79 // CHECK: [indexEntityReference]: kind: objc-property | name: prop | {{.*}} | cursor: ObjCSynthesizeDecl=prop:36:34 (Definition) | loc: 42:13 | <parent>:: kind: objc-class | name: I4 | {{.*}} | container: [I4:41:17] | refkind: direct
80 // CHECK-NOT: [indexDeclaration]: kind: objc-instance-method {{.*}} loc: 36:
81 // CHECK-NOT: [indexDeclaration]: kind: objc-instance-method {{.*}} loc: 42:
83 // CHECK: [indexDeclaration]: kind: objc-instance-method | name: meth | {{.*}} loc: 52:8 | {{.*}} | isRedecl: 0 | isDef: 0 |
84 // CHECK: [indexDeclaration]: kind: objc-property | name: c | USR: c:objc(cs)I5(cpy)c | lang: ObjC | cursor: ObjCPropertyDecl=c:53:23 [class,] | loc: 53:23