clang-tools 22.0.0git
|
Detect classes or structs that do not publicly inherit from std::enable_shared_from_this, because unintended behavior will / otherwise occur when calling shared_from_this. More...
#include <IncorrectEnableSharedFromThisCheck.h>
Public Member Functions | |
IncorrectEnableSharedFromThisCheck (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 |
Detect classes or structs that do not publicly inherit from std::enable_shared_from_this, because unintended behavior will / otherwise occur when calling shared_from_this.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/incorrect-enable-shared-from-this.html
Definition at line 22 of file IncorrectEnableSharedFromThisCheck.h.
|
inline |
Definition at line 24 of file IncorrectEnableSharedFromThisCheck.h.
|
override |
Definition at line 37 of file IncorrectEnableSharedFromThisCheck.cpp.
|
inlineoverride |
Definition at line 28 of file IncorrectEnableSharedFromThisCheck.h.
|
override |
Definition at line 18 of file IncorrectEnableSharedFromThisCheck.cpp.