|
clang-tools 23.0.0git
|
Detects usage of the result of standard algorithms (like std::find) in a boolean context without comparing it with the end iterator. More...
#include <MissingEndComparisonCheck.h>
Public Member Functions | |
| MissingEndComparisonCheck (StringRef Name, ClangTidyContext *Context) | |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Detects usage of the result of standard algorithms (like std::find) in a boolean context without comparing it with the end iterator.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/missing-end-comparison.html
Definition at line 21 of file MissingEndComparisonCheck.h.
| clang::tidy::bugprone::MissingEndComparisonCheck::MissingEndComparisonCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 36 of file MissingEndComparisonCheck.cpp.
|
override |
Definition at line 189 of file MissingEndComparisonCheck.cpp.
References clang::tidy::bugprone::getRangesEndText(), and clang::tidy::bugprone::getStandardEndText().
|
inlineoverride |
Definition at line 27 of file MissingEndComparisonCheck.h.
|
override |
Definition at line 121 of file MissingEndComparisonCheck.cpp.
References clang::tidy::bugprone::IteratorAlgorithms, and clang::tidy::bugprone::RangeAlgorithms.
|
override |
Definition at line 43 of file MissingEndComparisonCheck.cpp.
References clang::tidy::utils::options::serializeStringList().