clang-tools 22.0.0git
clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck Class Reference

Finds base classes whose destructor is neither public and virtual nor protected and non-virtual. More...

#include <VirtualClassDestructorCheck.h>

Inheritance diagram for clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck:
[legend]

Public Member Functions

 VirtualClassDestructorCheck (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 base classes whose destructor is neither public and virtual nor protected and non-virtual.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/virtual-class-destructor.html

Definition at line 22 of file VirtualClassDestructorCheck.h.

Constructor & Destructor Documentation

◆ VirtualClassDestructorCheck()

clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck::VirtualClassDestructorCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 24 of file VirtualClassDestructorCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 27 of file VirtualClassDestructorCheck.h.

◆ registerMatchers()

void clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 40 of file VirtualClassDestructorCheck.cpp.


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