9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_FORRANGECOPYCHECK_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_FORRANGECOPYCHECK_H 12 #include "../ClangTidyCheck.h" 16 namespace performance {
27 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
32 bool handleConstValueCopy(
const VarDecl &LoopVar, ASTContext &Context);
37 bool handleCopyIsOnlyConstReferenced(
const VarDecl &LoopVar,
38 const CXXForRangeStmt &ForRange,
41 const bool WarnOnAllAutoCopies;
42 const std::vector<std::string> AllowedTypes;
49 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_FORRANGECOPYCHECK_H 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.
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result