Lines Matching refs:once
1 // RUN: %check_clang_tidy %s darwin-dispatch-once-nonstatic %t
7 void bad_dispatch_once(dispatch_once_t once, void(^block)(void)) {}
8 …storage duration; function parameters should be pointer references [darwin-dispatch-once-nonstatic]
19 static dispatch_once_t once;
20 dispatch_once(&once, ^{
28 dispatch_once_t once;
29 …patch_once_t variables must have static or global storage duration [darwin-dispatch-once-nonstatic]
30 // CHECK-FIXES: static dispatch_once_t once;
31 dispatch_once(&once, ^{
40 dispatch_once_t once; // Allowed (at this time) field
45 …obal storage duration and cannot be Objective-C instance variables [darwin-dispatch-once-nonstatic]