clang-tools 22.0.0git
|
Block arguments in dispatch_async() and dispatch_after() are guaranteed to escape. More...
#include <NoEscapeCheck.h>
Public Member Functions | |
NoEscapeCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Block arguments in dispatch_async() and dispatch_after() are guaranteed to escape.
If those blocks capture any pointers with the noescape attribute, then we warn the user of their error.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/no-escape.html
Definition at line 22 of file NoEscapeCheck.h.
|
inline |
Definition at line 24 of file NoEscapeCheck.h.
|
override |
Definition at line 28 of file NoEscapeCheck.cpp.
|
inlineoverride |
Definition at line 26 of file NoEscapeCheck.h.
|
override |
Definition at line 17 of file NoEscapeCheck.cpp.