clang-tools 22.0.0git
clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck Class Reference

Flag coroutines that suspend while any lock guard is alive. More...

#include <NoSuspendWithLockCheck.h>

Inheritance diagram for clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ NoSuspendWithLockCheck()

clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::NoSuspendWithLockCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file NoSuspendWithLockCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 31 of file NoSuspendWithLockCheck.h.

◆ registerMatchers()

void clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

◆ storeOptions()

void clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 21 of file NoSuspendWithLockCheck.cpp.


The documentation for this class was generated from the following files: