10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_FORRANGECOPYCHECK_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_FORRANGECOPYCHECK_H
13 #include "../ClangTidy.h"
17 namespace performance {
28 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
33 bool handleConstValueCopy(
const VarDecl &LoopVar, ASTContext &Context);
38 bool handleCopyIsOnlyConstReferenced(
const VarDecl &LoopVar,
39 const CXXForRangeStmt &ForRange,
42 const bool WarnOnAllAutoCopies;
49 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_FORRANGECOPYCHECK_H
std::unique_ptr< ast_matchers::MatchFinder > Finder
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.