| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | dispatch-once.m | 29 dispatch_once(&once, ^{}); // no-warning 40 dispatch_once(once, ^{}); // no-warning 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… 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… 94 …dispatch_once(&o->once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the instance varia… 106 …dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'o… 117 …dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'o… [all …]
|
| H A D | unix-fns.c | 47 void dispatch_once(dispatch_once_t *predicate, 61 dispatch_once(predicate, block); in _dispatch_once() 70 #undef dispatch_once 71 #define dispatch_once _dispatch_once macro 105 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^(void) {})); } while (0)… in test_dispatch_once() 109 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^(void) {})); } while (0)… in test_dispatch_once_neg() 217 …dispatch_once(&pred, ^(void){}); // expected-warning {{Call to 'dispatch_once' uses the local var… in test_dispatch_once_in_macro() 234 dispatch_once(&pred, ^(void) { in test_inline_dispatch_once() 243 dispatch_once(&pred, ^(void) { in test_inline_dispatch_once_reachable()
|
| H A D | weak-functions.c | 94 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block) __attribute__((weak_import)); 98 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^(void) {})); } while (0)… in test_dispatch_once() 102 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^(void) {})); } while (0)… in test_dispatch_once_neg()
|
| H A D | stack-capture-leak-arc.mm | 7 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block); function 31 dispatch_once(predicate, ^{ 101 dispatch_once(predicate, b); // no-warning
|
| H A D | blocks.m | 16 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block); function 60 // via IPA 'logQueue' and 'client' should be updated after the call to 'dispatch_once'. 67 dispatch_once(&pred, ^{
|
| H A D | incorrect-checker-names.mm | 135 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block); function
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | block-in-ctor-dtor.cpp | 5 void dispatch_once(dispatch_block_t); 14 dispatch_once(^{}); in Zone() 15 dispatch_once(^{}); in Zone() 19 dispatch_once(^{}); in ~Zone() 20 dispatch_once(^{}); in ~Zone() 29 dispatch_once(^{}); in X() 30 dispatch_once(^{}); in X() 34 dispatch_once(^{}); in ~X() 35 dispatch_once(^{}); in ~X()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/darwin/ |
| H A D | dispatch-once-nonstatic.mm | 4 extern void dispatch_once(dispatch_once_t *pred, void(^block)(void)); function 20 dispatch_once(&once, ^{ 31 dispatch_once(&once, ^{
|
| /llvm-project-15.0.7/clang/test/Analysis/inlining/ |
| H A D | path-notes.m | 10 // Note: The real dispatch_once has all parameters marked nonnull. 13 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block); function 168 dispatch_once(&token, ^{}); 175 dispatch_once(&token, ^{}); // don't crash, don't warn here 182 dispatch_once(0, ^{}); // no-warning, don't crash
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/darwin/ |
| H A D | dispatch-once-nonstatic.rst | 21 `Apple's dispatch_once documentation <https://developer.apple.com/documentation/dispatch/1447169-di…
|
| /llvm-project-15.0.7/lldb/source/Host/macosx/objcxx/ |
| H A D | PosixSpawnResponsible.h | 32 dispatch_once(&pred, ^{ in setup_posix_spawn_responsible_flag()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/libdispatch/ |
| H A D | dispatch_once_deadlock.c | 19 dispatch_once(&onceToken, ^{ in f()
|
| H A D | once.c | 24 dispatch_once(&once_token, ^{ in Thread()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_interceptors_libdispatch.cpp | 288 #undef dispatch_once 289 TSAN_INTERCEPTOR(void, dispatch_once, dispatch_once_t *predicate, in TSAN_INTERCEPTOR() argument 291 SCOPED_INTERCEPTOR_RAW(dispatch_once, predicate, block); in TSAN_INTERCEPTOR() 315 WRAP(dispatch_once)(predicate, ^(void) { in TSAN_INTERCEPTOR() 783 INTERCEPT_FUNCTION(dispatch_once); in InitializeLibdispatchInterceptors()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_interceptors_libdispatch.cpp | 288 #undef dispatch_once 289 TSAN_INTERCEPTOR(void, dispatch_once, dispatch_once_t *predicate, in TSAN_INTERCEPTOR() argument 291 SCOPED_INTERCEPTOR_RAW(dispatch_once, predicate, block); in TSAN_INTERCEPTOR() 315 WRAP(dispatch_once)(predicate, ^(void) { in TSAN_INTERCEPTOR() 783 INTERCEPT_FUNCTION(dispatch_once); in InitializeLibdispatchInterceptors()
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | arc-type-conversion.mm | 28 void dispatch_once(dispatch_block_t block); 31 dispatch_once(block);
|
| /llvm-project-15.0.7/clang/docs/analyzer/ |
| H A D | checkers.rst | 979 dispatch_once(&pred, ^(){}); // warn: dispatch_once uses local
|