9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_UNNECESSARY_VALUE_PARAM_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_UNNECESSARY_VALUE_PARAM_H 12 #include "../ClangTidyCheck.h" 13 #include "../utils/IncludeInserter.h" 14 #include "clang/Analysis/Analyses/ExprMutationAnalyzer.h" 18 namespace performance {
29 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
31 Preprocessor *ModuleExpanderPP)
override;
36 void handleMoveFix(
const ParmVarDecl &Var,
const DeclRefExpr &CopyArgument,
37 const ASTContext &Context);
39 llvm::DenseMap<const FunctionDecl *, FunctionParmMutationAnalyzer>
41 std::unique_ptr<utils::IncludeInserter> Inserter;
43 const std::vector<std::string> AllowedTypes;
50 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_UNNECESSARY_VALUE_PARAM_H IncludeStyle
Supported include styles.
Base class for all clang-tidy checks.
static constexpr llvm::StringLiteral Name
std::map< std::string, std::string > OptionMap
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.