10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_UNNECESSARY_VALUE_PARAM_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_UNNECESSARY_VALUE_PARAM_H
13 #include "../ClangTidy.h"
14 #include "../utils/IncludeInserter.h"
18 namespace performance {
29 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
34 void handleMoveFix(
const ParmVarDecl &Var,
const DeclRefExpr &CopyArgument,
35 const ASTContext &Context);
37 std::unique_ptr<utils::IncludeInserter> Inserter;
45 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_UNNECESSARY_VALUE_PARAM_H
std::unique_ptr< ast_matchers::MatchFinder > Finder
IncludeStyle
Supported include styles.
Base class for all clang-tidy checks.
std::map< std::string, std::string > OptionMap
ClangTidyContext & Context
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.