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"
28 return LangOpts.CPlusPlus;
31 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
35 void addMatcher(
const ast_matchers::DeclarationMatcher &TargetRecordDecl,
36 StringRef VarDeclName, StringRef VarDeclStmtName,
37 const ast_matchers::DeclarationMatcher &AppendMethodDecl,
38 StringRef AppendCallName, ast_matchers::MatchFinder *Finder);
39 const std::vector<StringRef> VectorLikeClasses;
llvm::SmallString< 256U > Name
Base class for all clang-tidy checks.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
llvm::StringMap< ClangTidyValue > OptionMap