clang-tools 22.0.0git
clang::tidy::bugprone::ParentVirtualCallCheck Class Reference

Finds calls to grand..-parent virtual methods instead of parent's. More...

#include <ParentVirtualCallCheck.h>

Inheritance diagram for clang::tidy::bugprone::ParentVirtualCallCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ParentVirtualCallCheck()

clang::tidy::bugprone::ParentVirtualCallCheck::ParentVirtualCallCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file ParentVirtualCallCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::bugprone::ParentVirtualCallCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::bugprone::ParentVirtualCallCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 24 of file ParentVirtualCallCheck.h.

◆ registerMatchers()

void clang::tidy::bugprone::ParentVirtualCallCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 78 of file ParentVirtualCallCheck.cpp.


The documentation for this class was generated from the following files: