clang-tools 22.0.0git
|
Finds variables of type dispatch_once_t that do not have static or global storage duration, as required by the libdispatch documentation. More...
#include <DispatchOnceNonstaticCheck.h>
Public Member Functions | |
DispatchOnceNonstaticCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds variables of type dispatch_once_t that do not have static or global storage duration, as required by the libdispatch documentation.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/darwin/dispatch-once-nonstatic.html
Definition at line 21 of file DispatchOnceNonstaticCheck.h.
|
inline |
Definition at line 23 of file DispatchOnceNonstaticCheck.h.
|
override |
Definition at line 36 of file DispatchOnceNonstaticCheck.cpp.
|
override |
Definition at line 21 of file DispatchOnceNonstaticCheck.cpp.