Lines Matching refs:use
1 …-has-weak -fobjc-arc -fblocks -Wno-objc-root-class -std=c++11 -Warc-repeated-use-of-weak -verify %s
2 …has-weak -fobjc-weak -fblocks -Wno-objc-root-class -std=c++11 -Warc-repeated-use-of-weak -verify %s
17 extern void use(id); function
23 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
24 use(a.weakProp); // expected-note{{also accessed here}}
26 use(a.strongProp);
27 use(a.strongProp); // no-warning
29 use(a.weakProp); // expected-note{{also accessed here}}
33 use(a.weakProp); // no-warning
34 use(a.strongProp); // no-warning
58 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
62 use(a.weakProp); // no-warning
63 use(b.weakProp); // no-warning
67 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
68 use(a.strongProp.weakProp); // expected-note{{also accessed here}}
72 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
73 use(a.strongProp.weakProp); // expected-note{{also accessed here}}
77 …use(a.implicitProp); // expected-warning{{weak implicit property 'implicitProp' is accessed multip…
78 use(a.implicitProp); // expected-note{{also accessed here}}
82 …use(Test.weakProp); // expected-warning{{weak implicit property 'weakProp' is accessed multiple ti…
83 use(Test.weakProp); // expected-note{{also accessed here}}
87 use(Test.weakProp); // no-warning
88 use(a.weakProp); // no-warning
89 use(a.strongProp.weakProp); // no-warning
93 …use(a->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple time…
94 use(a->weakIvar); // expected-note{{also accessed here}}
99 use(a); // expected-warning{{weak variable 'a' is accessed multiple times}}
100 use(a); // expected-note{{also accessed here}}
104 use([a weakProp]); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
105 use([a weakProp]); // expected-note{{also accessed here}}
115 use([a weakProp]); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
119 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
120 use([a weakProp]); // expected-note{{also accessed here}}
122 use([b weakProp]); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
123 use(b.weakProp); // expected-note{{also accessed here}}
129 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
135 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
140 …use(a->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple time…
146 use(a); // expected-warning{{weak variable 'a' is accessed multiple times}}
166 use(a.weakProp); // no-warning
168 use(^{
169 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
170 use(a.weakProp); // expected-note{{also accessed here}}
257 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
263 use(a.weakProp); // no-warning
268 use(a.strongProp.weakProp); // no-warning
274 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
282 use(a); // expected-warning{{weak variable 'a' is accessed multiple times in this function}}
289 use(a.weakProp); // no-warning
299 …use(self.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in th…
300 use(self.weakProp); // expected-note{{also accessed here}}
304 …use(weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple times i…
305 use(weakIvar); // expected-note{{also accessed here}}
309 …use(self.strongProp.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple …
310 use(self.strongProp.weakProp); // expected-note{{also accessed here}}
312 …use(self->ivar.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times…
313 use(self->ivar.weakProp); // expected-note{{also accessed here}}
315 …use(self->ivar->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed mult…
316 use(self->ivar->weakIvar); // expected-note{{also accessed here}}
320 use(self.strongProp.weakProp); // no-warning
321 use(other.strongProp.weakProp); // no-warning
323 use(self->ivar.weakProp); // no-warning
324 use(other->ivar.weakProp); // no-warning
326 use(self.strongProp->weakIvar); // no-warning
327 use(other.strongProp->weakIvar); // no-warning
340 use([s prop]);
341 use([s prop]);
353 use([s prop]);
354 use([s prop]);
363 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
364 use(a.weakProp); // expected-note{{also accessed here}}
368 use(a.weakProp); // no-warning
369 use(b.weakProp); // no-warning
370 use(w.a.weakProp); // no-warning
374 … use(x.a.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple times}}
375 use(y.a.weakProp); // expected-note{{also accessed here}}
390 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
395 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
397 use(a.weakProp); // expected-note{{also accessed here}}
401 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
402 use(b.strongProp.weakProp); // expected-note{{also accessed here}}
404 use(a.weakProp.weakProp); // no-warning
408 …use(a->ivar.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple time…
409 use(b->ivar.weakProp); // expected-note{{also accessed here}}
411 use(a.strongProp.weakProp); // no-warning
423 use(blockSelf);
459 …use(NSBundle.foo.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
460 use(NSBundle2.foo.weakProp); // expected-note{{also accessed here}}
463 …use(NSBundle.foo2.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multipl…
464 use(NSBundle2.foo2.weakProp); // expected-note{{also accessed here}}