Lines Matching full:use
1 …-has-weak -fobjc-arc -fblocks -Wno-objc-root-class -std=c++11 -Warc-repeated-use-of-weak -verify %s
16 extern void use(id); function
22 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
23 use(a.weakProp); // expected-note{{also accessed here}}
25 use(a.strongProp);
26 use(a.strongProp); // no-warning
28 use(a.weakProp); // expected-note{{also accessed here}}
32 use(a.weakProp); // no-warning
33 use(a.strongProp); // no-warning
57 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
61 use(a.weakProp); // no-warning
62 use(b.weakProp); // no-warning
66 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
67 use(a.strongProp.weakProp); // expected-note{{also accessed here}}
71 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
72 use(a.strongProp.weakProp); // expected-note{{also accessed here}}
76 …use(a.implicitProp); // expected-warning{{weak implicit property 'implicitProp' is accessed multip…
77 use(a.implicitProp); // expected-note{{also accessed here}}
81 …use(Test.weakProp); // expected-warning{{weak implicit property 'weakProp' is accessed multiple ti…
82 use(Test.weakProp); // expected-note{{also accessed here}}
86 use(Test.weakProp); // no-warning
87 use(a.weakProp); // no-warning
88 use(a.strongProp.weakProp); // no-warning
92 …use(a->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple time…
93 use(a->weakIvar); // expected-note{{also accessed here}}
98 use(a); // expected-warning{{weak variable 'a' is accessed multiple times}}
99 use(a); // expected-note{{also accessed here}}
103 use([a weakProp]); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
104 use([a weakProp]); // expected-note{{also accessed here}}
114 use([a weakProp]); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
118 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
119 use([a weakProp]); // expected-note{{also accessed here}}
121 use([b weakProp]); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
122 use(b.weakProp); // expected-note{{also accessed here}}
128 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
134 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
139 …use(a->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple time…
145 use(a); // expected-warning{{weak variable 'a' is accessed multiple times}}
165 use(a.weakProp); // no-warning
167 use(^{
168 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
169 use(a.weakProp); // expected-note{{also accessed here}}
256 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
262 use(a.weakProp); // no-warning
267 use(a.strongProp.weakProp); // no-warning
273 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
281 use(a); // expected-warning{{weak variable 'a' is accessed multiple times in this function}}
288 use(a.weakProp); // no-warning
298 …use(self.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in th…
299 use(self.weakProp); // expected-note{{also accessed here}}
303 …use(weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple times i…
304 use(weakIvar); // expected-note{{also accessed here}}
308 …use(self.strongProp.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple …
309 use(self.strongProp.weakProp); // expected-note{{also accessed here}}
311 …use(self->ivar.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times…
312 use(self->ivar.weakProp); // expected-note{{also accessed here}}
314 …use(self->ivar->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed mult…
315 use(self->ivar->weakIvar); // expected-note{{also accessed here}}
319 use(self.strongProp.weakProp); // no-warning
320 use(other.strongProp.weakProp); // no-warning
322 use(self->ivar.weakProp); // no-warning
323 use(other->ivar.weakProp); // no-warning
325 use(self.strongProp->weakIvar); // no-warning
326 use(other.strongProp->weakIvar); // no-warning
339 use([s prop]);
340 use([s prop]);
352 use([s prop]);
353 use([s prop]);
362 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
363 use(a.weakProp); // expected-note{{also accessed here}}
367 use(a.weakProp); // no-warning
368 use(b.weakProp); // no-warning
369 use(w.a.weakProp); // no-warning
373 … use(x.a.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple times}}
374 use(y.a.weakProp); // expected-note{{also accessed here}}
389 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
394 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
396 use(a.weakProp); // expected-note{{also accessed here}}
400 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
401 use(b.strongProp.weakProp); // expected-note{{also accessed here}}
403 use(a.weakProp.weakProp); // no-warning
407 …use(a->ivar.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple time…
408 use(b->ivar.weakProp); // expected-note{{also accessed here}}
410 use(a.strongProp.weakProp); // no-warning
422 use(blockSelf);
458 …use(NSBundle.foo.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
459 use(NSBundle2.foo.weakProp); // expected-note{{also accessed here}}
462 …use(NSBundle.foo2.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multipl…
463 use(NSBundle2.foo2.weakProp); // expected-note{{also accessed here}}