Lines Matching refs:property
10 @property(strong) id x;
11 @property(strong) id y;
12 @property(strong) id z;
21 @property(retain) id x;
22 @property(retain) id y;
23 @property(retain) id z;
32 @property(copy) id x;
33 @property(copy) id y;
34 @property(copy) id z;
40 @property(strong) __unsafe_unretained id x; // expected-error {{strong property 'x' may not also be…
41 @property(strong) __weak id y; // expected-error {{strong property 'y' may not also be declared __w…
42 @property(strong) __autoreleasing id z; // expected-error {{strong property 'z' may not also be dec…
46 @property(retain) __unsafe_unretained id x; // expected-error {{strong property 'x' may not also be…
47 @property(retain) __weak id y; // expected-error {{strong property 'y' may not also be declared __w…
48 @property(retain) __autoreleasing id z; // expected-error {{strong property 'z' may not also be dec…
52 @property(copy) __unsafe_unretained id x; // expected-error {{strong property 'x' may not also be d…
53 @property(copy) __weak id y; // expected-error {{strong property 'y' may not also be declared __wea…
54 @property(copy) __autoreleasing id z; // expected-error {{strong property 'z' may not also be decla…
58 @property(assign) __unsafe_unretained id x;
59 @property(assign) __weak id y; // expected-error {{unsafe_unretained property 'y' may not also be d…
60 @property(assign) __autoreleasing id z; // expected-error {{unsafe_unretained property 'z' may not …
64 @property(unsafe_unretained) __unsafe_unretained id x;
65 @property(unsafe_unretained) __weak id y; // expected-error {{unsafe_unretained property 'y' may no…
66 @property(unsafe_unretained) __autoreleasing id z; // expected-error {{unsafe_unretained property '…
71 @property (readonly, retain) id foo;
72 @property (readonly, weak) id fee;
73 @property (readonly, strong) id frr;
77 @property (readwrite) id foo;
78 @property (readwrite) id fee;
79 @property (readwrite) id frr;
89 @property(nonatomic, weak) id delegate; // Do not warn, nullable is inferred.
90 @property(nonatomic, weak, readonly) id ROdelegate; // Do not warn, nullable is inferred.
91 @property(nonatomic, weak, nonnull) id NonNulldelete; // expected-error {{property attributes 'nonn…
92 @property(nonatomic, weak, nullable) id Nullabledelete; // do not warn
95 @property(nonatomic, strong) id stdelegate; // Do not warn
96 @property(nonatomic, readonly) id stROdelegate; // Do not warn
97 @property(nonatomic, strong, nonnull) id stNonNulldelete; // Do not warn
98 @property(nonatomic, nullable) id stNullabledelete; // do not warn
103 @property(nonatomic, weak) id ddd; // Do not warn, nullable is inferred.
104 @property(nonatomic, weak, nonnull) id delegate; // expected-error {{property attributes 'nonnull' …
105 @property(nonatomic, weak, nonnull, readonly) id ROdelegate; // expected-error {{property attribute…
110 @property(readonly, retain) id prop;
118 @property (readwrite) id prop;
126 // Verify that the all of the property declarations in inherited protocols are
127 // compatible when synthesing a property from a protocol.
130 @property (copy, nonatomic, readonly) id prop; // expected-error {{property with attribute 'copy' …
133 @property (assign, nonatomic, readonly) id prop; // expected-note {{it could also be property witho…
139 @synthesize prop; // expected-note {{property synthesized here}}
143 @property (readonly) id prop; // expected-error {{property without attribute 'retain (or strong)' w…
146 @property (retain, readonly) id prop; // expected-note {{it could also be property with attribute '…
152 @synthesize prop; // expected-note {{property synthesized here}}
156 @property (copy, nonatomic, readonly) id prop; // expected-error {{property without attribute 'atom…
159 @property (copy, atomic, readonly) id prop; // expected-note {{it could also be property with attri…
165 @synthesize prop; // expected-note {{property synthesized here}}
169 @property (copy, readonly) id prop; // expected-error {{property with getter 'prop' was selected fo…
172 @property (copy, getter=x, readonly) id prop; // expected-note {{it could also be property with get…
178 @synthesize prop; // expected-note {{property synthesized here}}
182 @property (copy, readonly) id prop;
185 @property (copy, setter=setp:, readwrite) id prop; // expected-error {{property with setter 'setp:'…
188 @property (copy, readwrite) id prop; // expected-note {{it could also be property with setter 'setP…
194 @synthesize prop; // expected-note {{property synthesized here}}
198 @property (assign, atomic, readonly) int prop; // expected-error {{property of type 'int' was selec…
201 @property (assign, atomic, readonly) id prop; // expected-note {{it could also be property of type …
204 @property (copy, readonly) id prop; // expected-note {{it could also be property with attribute 'co…
210 @synthesize prop; // expected-note {{property synthesized here}}
214 @property (assign, nonatomic, readonly) int prop; // expected-note {{it could also be property of t…
217 @property (assign, nonatomic, readonly) id prop; // ok
220 @property (assign, nonatomic, readwrite) id prop; // expected-error {{property of type 'id' was sel…
226 @synthesize prop; // expected-note {{property synthesized here}}
231 @property (nonatomic, readonly) NSObject *prop;
237 // This property gets the 'strong' attribute automatically.
238 @property (nonatomic, readwrite) NSObject *prop;
251 // no error, 'strong' is implicit in the 'readwrite' property.
257 // Allow strong readwrite property and a readonly one.
260 @property(strong) NSObject *p;
261 @property(copy) NSObject *p2;
263 // expected-error@+1 {{property with attribute 'retain (or strong)' was selected for synthesis}}
264 @property(strong, readwrite) NSObject *collision;
270 @property(readonly) NSObject *p;
271 @property(readonly) NSObject *p2;
273 // expected-note@+1 {{it could also be property without attribute 'retain (or strong)' declared her…
274 @property(readonly, weak) NSObject *collision;
287 @synthesize collision = _collision; // expected-note {{property synthesized here}}