clang-tools 22.0.0git
|
Flag coroutines that suspend while any lock guard is alive. More...
#include <NoSuspendWithLockCheck.h>
Public Member Functions | |
NoSuspendWithLockCheck (StringRef Name, ClangTidyContext *Context) | |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Flag coroutines that suspend while any lock guard is alive.
This check implements CppCoreGuideline CP.52.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/no-suspend-with-lock.html
Definition at line 21 of file NoSuspendWithLockCheck.h.
|
inline |
Definition at line 23 of file NoSuspendWithLockCheck.h.
|
override |
Definition at line 44 of file NoSuspendWithLockCheck.cpp.
References clang::tidy::utils::ExprSequence::inSequence().
|
inlineoverride |
Definition at line 31 of file NoSuspendWithLockCheck.h.
|
override |
Definition at line 25 of file NoSuspendWithLockCheck.cpp.
References clang::tidy::matchers::matchesAnyListedName(), and clang::tidy::utils::options::parseStringList().
|
override |
Definition at line 21 of file NoSuspendWithLockCheck.cpp.