Home
last modified time | relevance | path

Searched refs:dispatch_once (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/clang/test/Analysis/
H A Ddispatch-once.m29 dispatch_once(&once, ^{}); // no-warning
40 dispatch_once(once, ^{}); // no-warning
49dispatch_once(&s.once, ^{}); // expected-warning{{Call to 'dispatch_once' uses memory within the l…
54dispatch_once(&s->once, ^{}); // expected-warning{{Call to 'dispatch_once' uses heap-allocated mem…
69dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the instance variable…
72dispatch_once(&s.once, ^{}); // expected-warning{{Call to 'dispatch_once' uses memory within the i…
81dispatch_once(&o->once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the instance varia…
94dispatch_once(&o->once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the instance varia…
106dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'o…
117dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'o…
[all …]
H A Dunix-fns.c47 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()
217dispatch_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 Dweak-functions.c94 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 Dstack-capture-leak-arc.mm7 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 Dblocks.m16 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 Dincorrect-checker-names.mm135 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block); function
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dblock-in-ctor-dtor.cpp5 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 Ddispatch-once-nonstatic.mm4 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 Dpath-notes.m10 // 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 Ddispatch-once-nonstatic.rst21 `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 DPosixSpawnResponsible.h32 dispatch_once(&pred, ^{ in setup_posix_spawn_responsible_flag()
/llvm-project-15.0.7/compiler-rt/test/tsan/libdispatch/
H A Ddispatch_once_deadlock.c19 dispatch_once(&onceToken, ^{ in f()
H A Donce.c24 dispatch_once(&once_token, ^{ in Thread()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_interceptors_libdispatch.cpp288 #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 Dtsan_interceptors_libdispatch.cpp288 #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 Darc-type-conversion.mm28 void dispatch_once(dispatch_block_t block);
31 dispatch_once(block);
/llvm-project-15.0.7/clang/docs/analyzer/
H A Dcheckers.rst979 dispatch_once(&pred, ^(){}); // warn: dispatch_once uses local