Lines Matching full: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
23use(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
67use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
68 use(a.strongProp.weakProp); // expected-note{{also accessed here}}
72use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
73 use(a.strongProp.weakProp); // expected-note{{also accessed here}}
77use(a.implicitProp); // expected-warning{{weak implicit property 'implicitProp' is accessed multip…
78 use(a.implicitProp); // expected-note{{also accessed here}}
82use(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
93use(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}}
140use(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(^{
169use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
170 use(a.weakProp); // expected-note{{also accessed here}}
257use(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
274use(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
311use(self.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in th…
312 use(self.weakProp); // expected-note{{also accessed here}}
316use(weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple times i…
317 use(weakIvar); // expected-note{{also accessed here}}
321use(self.strongProp.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple …
322 use(self.strongProp.weakProp); // expected-note{{also accessed here}}
324use(self->ivar.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times…
325 use(self->ivar.weakProp); // expected-note{{also accessed here}}
327use(self->ivar->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed mult…
328 use(self->ivar->weakIvar); // expected-note{{also accessed here}}
332 use(self.strongProp.weakProp); // no-warning
333 use(other.strongProp.weakProp); // no-warning
335 use(self->ivar.weakProp); // no-warning
336 use(other->ivar.weakProp); // no-warning
338 use(self.strongProp->weakIvar); // no-warning
339 use(other.strongProp->weakIvar); // no-warning
352 use([s prop]);
353 use([s prop]);
365 use([s prop]);
366 use([s prop]);
375use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this …
376 use(a.weakProp); // expected-note{{also accessed here}}
380 use(a.weakProp); // no-warning
381 use(b.weakProp); // no-warning
382 use(w.a.weakProp); // no-warning
386use(x.a.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple times}}
387 use(y.a.weakProp); // expected-note{{also accessed here}}
402 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
407 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}}
409 use(a.weakProp); // expected-note{{also accessed here}}
413use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
414 use(b.strongProp.weakProp); // expected-note{{also accessed here}}
416 use(a.weakProp.weakProp); // no-warning
420use(a->ivar.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple time…
421 use(b->ivar.weakProp); // expected-note{{also accessed here}}
423 use(a.strongProp.weakProp); // no-warning
434 use(blockSelf);
469use(NSBundle.foo.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple…
470 use(NSBundle2.foo.weakProp); // expected-note{{also accessed here}}
473use(NSBundle.foo2.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multipl…
474 use(NSBundle2.foo2.weakProp); // expected-note{{also accessed here}}