clang-tools 22.0.0git
|
Finds calls to grand..-parent virtual methods instead of parent's. More...
#include <ParentVirtualCallCheck.h>
Public Member Functions | |
ParentVirtualCallCheck (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 |
Finds calls to grand..-parent virtual methods instead of parent's.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/parent-virtual-call.html
Definition at line 20 of file ParentVirtualCallCheck.h.
|
inline |
Definition at line 22 of file ParentVirtualCallCheck.h.
|
override |
Definition at line 93 of file ParentVirtualCallCheck.cpp.
References clang::tidy::bugprone::getExprAsString(), clang::tidy::bugprone::getNameAsString(), clang::tidy::bugprone::getParentsByGrandParent(), and clang::tidy::bugprone::isParentOf().
|
inlineoverride |
Definition at line 24 of file ParentVirtualCallCheck.h.
|
override |
Definition at line 78 of file ParentVirtualCallCheck.cpp.