clang-tools 22.0.0git
|
Flags C++20 coroutine lambdas with non-empty capture lists that may cause use-after-free errors and suggests avoiding captures or ensuring the lambda closure object has a guaranteed lifetime. More...
#include <AvoidCapturingLambdaCoroutinesCheck.h>
Public Member Functions | |
AvoidCapturingLambdaCoroutinesCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Flags C++20 coroutine lambdas with non-empty capture lists that may cause use-after-free errors and suggests avoiding captures or ensuring the lambda closure object has a guaranteed lifetime.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/avoid-capturing-lambda-coroutines.html
Definition at line 22 of file AvoidCapturingLambdaCoroutinesCheck.h.
|
inline |
Definition at line 24 of file AvoidCapturingLambdaCoroutinesCheck.h.
|
override |
Definition at line 37 of file AvoidCapturingLambdaCoroutinesCheck.cpp.
|
override |
Definition at line 32 of file AvoidCapturingLambdaCoroutinesCheck.cpp.
|
override |
Definition at line 26 of file AvoidCapturingLambdaCoroutinesCheck.cpp.