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"
27 return LangOpts.CPlusPlus;
30 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
32 Preprocessor *ModuleExpanderPP)
override;
40 const DeclRefExpr &CopyArgument,
43 const ParmVarDecl &Param, ASTContext &Context);
46 ExprMutationAnalyzer::Memoized MutationAnalyzerCache;
48 const std::vector<StringRef> AllowedTypes;
llvm::SmallString< 256U > Name
Base class for all clang-tidy checks.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
Produces fixes to insert specified includes to source files, if not yet present.
llvm::StringMap< ClangTidyValue > OptionMap