clang-tools 22.0.0git
|
Finds creation of temporary objects in constructors that look like a function call to another constructor of the same class. More...
#include <UndelegatedConstructorCheck.h>
Public Member Functions | |
UndelegatedConstructorCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds creation of temporary objects in constructors that look like a function call to another constructor of the same class.
The user most likely meant to use a delegating constructor or base class initializer.
Definition at line 21 of file UndelegatedConstructorCheck.h.
|
inline |
Definition at line 23 of file UndelegatedConstructorCheck.h.
|
override |
Definition at line 68 of file UndelegatedConstructorCheck.cpp.
|
inlineoverride |
Definition at line 25 of file UndelegatedConstructorCheck.h.
|
override |
Definition at line 47 of file UndelegatedConstructorCheck.cpp.