clang-tools 22.0.0git
|
Detects when objects of certain hostile RAII types persists across suspension points in a coroutine. More...
#include <CoroutineHostileRAIICheck.h>
Public Member Functions | |
CoroutineHostileRAIICheck (llvm::StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Detects when objects of certain hostile RAII types persists across suspension points in a coroutine.
Such hostile types include scoped-lockable types and types belonging to a configurable denylist.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/coroutine-hostile-raii.html
Definition at line 26 of file CoroutineHostileRAIICheck.h.
clang::tidy::misc::CoroutineHostileRAIICheck::CoroutineHostileRAIICheck | ( | llvm::StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 70 of file CoroutineHostileRAIICheck.cpp.
|
override |
Definition at line 93 of file CoroutineHostileRAIICheck.cpp.
|
inlineoverride |
Definition at line 38 of file CoroutineHostileRAIICheck.h.
|
inlineoverride |
Definition at line 30 of file CoroutineHostileRAIICheck.h.
|
override |
Definition at line 78 of file CoroutineHostileRAIICheck.cpp.
|
override |
Definition at line 108 of file CoroutineHostileRAIICheck.cpp.
References clang::tidy::utils::options::serializeStringList().