• Home
  • Raw
  • Download

Lines Matching refs:once

23   dispatch_once_t once;
24 …dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the local variable 'o…
28 static dispatch_once_t once;
29 dispatch_once(&once, ^{}); // no-warning
33 dispatch_once_t *once = calloc(1, sizeof(dispatch_once_t));
35 …dispatch_once(once, ^{}); // expected-warning-re{{{{^Call to 'dispatch_once' uses heap-allocated m…
38 void test_external_pointer(dispatch_once_t *once) {
40 dispatch_once(once, ^{}); // no-warning
44 dispatch_once_t once; field
49 …dispatch_once(&s.once, ^{}); // expected-warning{{Call to 'dispatch_once' uses memory within the l…
54 …dispatch_once(&s->once, ^{}); // expected-warning{{Call to 'dispatch_once' uses heap-allocated mem…
59 dispatch_once_t once; field
69 …dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the instance variable…
72 …dispatch_once(&s.once, ^{}); // expected-warning{{Call to 'dispatch_once' uses memory within the i…
81 …dispatch_once(&o->once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the instance varia…
85 …dispatch_once(&o->s.once, ^{}); // expected-warning{{Call to 'dispatch_once' uses memory within th…
94 …dispatch_once(&o->once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the instance varia…
97 …dispatch_once(&o->s.once, ^{}); // expected-warning{{Call to 'dispatch_once' uses memory within th…
104 __block dispatch_once_t once;
106 …dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'o…
110 void use_block_var(dispatch_once_t *once);
113 __block dispatch_once_t once;
115 use_block_var(&once);
117 …dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'o…
121 static dispatch_once_t once;
123 dispatch_once(&once, ^{}); // no-warning