clang-tools 22.0.0git
|
Warns on inefficient use of STL algorithms on associative containers. More...
#include <InefficientAlgorithmCheck.h>
Public Member Functions | |
InefficientAlgorithmCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Warns on inefficient use of STL algorithms on associative containers.
Associative containers implements some of the algorithms as methods which should be preferred to the algorithms in the algorithm header. The methods can take advantage of the order of the elements.
Definition at line 21 of file InefficientAlgorithmCheck.h.
|
inline |
Definition at line 23 of file InefficientAlgorithmCheck.h.
|
override |
Definition at line 58 of file InefficientAlgorithmCheck.cpp.
References clang::tidy::performance::areTypesCompatible().
|
inlineoverride |
Definition at line 30 of file InefficientAlgorithmCheck.h.
|
inlineoverride |
Definition at line 25 of file InefficientAlgorithmCheck.h.
|
override |
Definition at line 27 of file InefficientAlgorithmCheck.cpp.