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
Base class for all clang-tidy checks.
std::map< std::string, std::string > OptionMap
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.