clang-tools 22.0.0git
|
Finds lambda captures that capture the this pointer and store it as class members without handle the copy and move constructors and the assignments. More...
#include <CapturingThisInMemberVariableCheck.h>
Public Member Functions | |
CapturingThisInMemberVariableCheck (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 |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Finds lambda captures that capture the this pointer and store it as class members without handle the copy and move constructors and the assignments.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/capturing-this-in-member-variable.html
Definition at line 24 of file CapturingThisInMemberVariableCheck.h.
clang::tidy::bugprone::CapturingThisInMemberVariableCheck::CapturingThisInMemberVariableCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 71 of file CapturingThisInMemberVariableCheck.cpp.
References clang::tidy::bugprone::DefaultBindFunctions, and clang::tidy::bugprone::DefaultFunctionWrapperTypes.
|
override |
Definition at line 123 of file CapturingThisInMemberVariableCheck.cpp.
|
inlineoverride |
Definition at line 33 of file CapturingThisInMemberVariableCheck.h.
|
inlineoverride |
Definition at line 30 of file CapturingThisInMemberVariableCheck.h.
|
override |
Definition at line 86 of file CapturingThisInMemberVariableCheck.cpp.
References clang::tidy::matchers::matchesAnyListedName().
|
override |
Definition at line 78 of file CapturingThisInMemberVariableCheck.cpp.
References clang::tidy::utils::options::serializeStringList().