clang-tools 22.0.0git
|
Checks for ignored calls to empty() on a range and suggests clear() as an alternative if it is an existing member function. More...
#include <StandaloneEmptyCheck.h>
Public Member Functions | |
StandaloneEmptyCheck (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 |
Checks for ignored calls to empty() on a range and suggests clear() as an alternative if it is an existing member function.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/standalone-empty.html
Definition at line 21 of file StandaloneEmptyCheck.h.
|
inline |
Definition at line 23 of file StandaloneEmptyCheck.h.
|
override |
Definition at line 96 of file StandaloneEmptyCheck.cpp.
References clang::tidy::bugprone::getCondition().
|
inlineoverride |
Definition at line 25 of file StandaloneEmptyCheck.h.
|
override |
Definition at line 74 of file StandaloneEmptyCheck.cpp.