10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MOVECONSTRUCTORINITCHECK_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MOVECONSTRUCTORINITCHECK_H
13 #include "../ClangTidy.h"
14 #include "../utils/IncludeInserter.h"
31 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
37 handleMoveConstructor(
const ast_matchers::MatchFinder::MatchResult &Result);
39 handleParamNotMoved(
const ast_matchers::MatchFinder::MatchResult &Result);
41 std::unique_ptr<utils::IncludeInserter> Inserter;
43 const bool UseCERTSemantics;
50 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MOVECONSTRUCTORINITCHECK_H
std::unique_ptr< ast_matchers::MatchFinder > Finder
IncludeStyle
Supported include styles.
Base class for all clang-tidy checks.
void registerPPCallbacks(clang::CompilerInstance &Compiler) override
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
std::map< std::string, std::string > OptionMap
The check flags user-defined move constructors that have a ctor-initializer initializing a member or ...
ClangTidyContext & Context
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
MoveConstructorInitCheck(StringRef Name, ClangTidyContext *Context)
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.