clang-tools 22.0.0git
|
Find usages of sizeof on expressions of STL container types. More...
#include <SizeofContainerCheck.h>
Public Member Functions | |
SizeofContainerCheck (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 |
Find usages of sizeof on expressions of STL container types.
Most likely the user wanted to use .size() instead.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/sizeof-container.html
Definition at line 21 of file SizeofContainerCheck.h.
|
inline |
Definition at line 23 of file SizeofContainerCheck.h.
|
override |
Definition at line 34 of file SizeofContainerCheck.cpp.
|
inlineoverride |
Definition at line 25 of file SizeofContainerCheck.h.
|
override |
Definition at line 16 of file SizeofContainerCheck.cpp.