|
clang-tools 23.0.0git
|
Finds calls to llvm::to_vector(llvm::map_range(...)) and llvm::to_vector(llvm::make_filter_range(...)) that can be replaced with llvm::map_to_vector and llvm::filter_to_vector from SmallVectorExtras.h. More...
#include <UseVectorUtilsCheck.h>
Public Member Functions | |
| UseVectorUtilsCheck (StringRef Name, ClangTidyContext *Context) | |
| void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Finds calls to llvm::to_vector(llvm::map_range(...)) and llvm::to_vector(llvm::make_filter_range(...)) that can be replaced with llvm::map_to_vector and llvm::filter_to_vector from SmallVectorExtras.h.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/llvm/use-vector-utils.html
Definition at line 24 of file UseVectorUtilsCheck.h.
| clang::tidy::llvm_check::UseVectorUtilsCheck::UseVectorUtilsCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 18 of file UseVectorUtilsCheck.cpp.
|
override |
Definition at line 44 of file UseVectorUtilsCheck.cpp.
References clang::tidy::utils::lexer::findNextTokenSkippingComments().
|
inlineoverride |
Definition at line 32 of file UseVectorUtilsCheck.h.
|
override |
Definition at line 29 of file UseVectorUtilsCheck.cpp.
|
override |
Definition at line 23 of file UseVectorUtilsCheck.cpp.