9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_INEFFICIENT_VECTOR_OPERATION_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_INEFFICIENT_VECTOR_OPERATION_H 12 #include "../ClangTidyCheck.h" 16 namespace performance {
30 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
34 void AddMatcher(
const ast_matchers::DeclarationMatcher &TargetRecordDecl,
35 StringRef VarDeclName, StringRef VarDeclStmtName,
36 const ast_matchers::DeclarationMatcher &AppendMethodDecl,
37 StringRef AppendCallName, ast_matchers::MatchFinder *Finder);
38 const std::vector<std::string> VectorLikeClasses;
48 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PERFORMANCE_INEFFICIENT_VECTOR_OPERATION_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.