Home | History | Annotate | Download | only in Analysis

Lines Matching defs:dispatch_once

39 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block);
62 do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); // expected-warning{{Call to 'dispatch_once' uses the local variable 'pred' for the predicate value}}
66 do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); // no-warning
172 // Test dispatch_once being a macro that wraps a call to _dispatch_once, which in turn
173 // calls the real dispatch_once.
177 dispatch_once(predicate, block);
180 #define dispatch_once _dispatch_once
184 dispatch_once(&pred, ^(){}); // expected-warning {{Call to 'dispatch_once' uses the local variable 'pred' for the predicate value}}
197 // Test inlining if dispatch_once.
201 dispatch_once(&pred, ^(void) {
552 // CHECK-NEXT: <string>Call to &apos;dispatch_once&apos; uses the local variable &apos;pred&apos; for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as &apos;static&apos;?</string>
554 // CHECK-NEXT: <string>Call to &apos;dispatch_once&apos; uses the local variable &apos;pred&apos; for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as &apos;static&apos;?</string>
557 // CHECK-NEXT: <key>description</key><string>Call to &apos;dispatch_once&apos; uses the local variable &apos;pred&apos; for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as &apos;static&apos;?</string>
559 // CHECK-NEXT: <key>type</key><string>Improper use of &apos;dispatch_once&apos;</string>
1382 // CHECK-NEXT: <string>Call to &apos;dispatch_once&apos; uses the local variable &apos;pred&apos; for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as &apos;static&apos;?</string>
1384 // CHECK-NEXT: <string>Call to &apos;dispatch_once&apos; uses the local variable &apos;pred&apos; for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as &apos;static&apos;?</string>
1387 // CHECK-NEXT: <key>description</key><string>Call to &apos;dispatch_once&apos; uses the local variable &apos;pred&apos; for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as &apos;static&apos;?</string>
1389 // CHECK-NEXT: <key>type</key><string>Improper use of &apos;dispatch_once&apos;</string>
2043 // CHECK-NEXT: <string>Calling &apos;dispatch_once&apos;</string>
2045 // CHECK-NEXT: <string>Calling &apos;dispatch_once&apos;</string>
2086 // CHECK-NEXT: <string>Entered call from &apos;dispatch_once&apos;</string>
2088 // CHECK-NEXT: <string>Entered call from &apos;dispatch_once&apos;</string>