clang-tools 22.0.0git
|
The check flags user-defined move constructors that have a ctor-initializer initializing a member or base class through a copy constructor instead of a move constructor. More...
#include <MoveConstructorInitCheck.h>
Public Member Functions | |
MoveConstructorInitCheck (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 |
The check flags user-defined move constructors that have a ctor-initializer initializing a member or base class through a copy constructor instead of a move constructor.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/performance/move-constructor-init.html
Definition at line 21 of file MoveConstructorInitCheck.h.
clang::tidy::performance::MoveConstructorInitCheck::MoveConstructorInitCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 17 of file MoveConstructorInitCheck.cpp.
|
override |
Definition at line 35 of file MoveConstructorInitCheck.cpp.
|
inlineoverride |
Definition at line 24 of file MoveConstructorInitCheck.h.
|
override |
Definition at line 21 of file MoveConstructorInitCheck.cpp.