|
clang-tools 22.0.0git
|
Checks that a derived class does not define the same (non virtual) method as a base class. More...
#include <DerivedMethodShadowingBaseMethodCheck.h>
Public Member Functions | |
| DerivedMethodShadowingBaseMethodCheck (StringRef Name, ClangTidyContext *Context) | |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
| std::optional< TraversalKind > | getCheckTraversalKind () const override |
Checks that a derived class does not define the same (non virtual) method as a base class.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/derived-method-shadowing-base-method.html
Definition at line 21 of file DerivedMethodShadowingBaseMethodCheck.h.
| clang::tidy::bugprone::DerivedMethodShadowingBaseMethodCheck::DerivedMethodShadowingBaseMethodCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 88 of file DerivedMethodShadowingBaseMethodCheck.cpp.
|
override |
Definition at line 109 of file DerivedMethodShadowingBaseMethodCheck.cpp.
|
inlineoverride |
Definition at line 30 of file DerivedMethodShadowingBaseMethodCheck.h.
|
inlineoverride |
Definition at line 27 of file DerivedMethodShadowingBaseMethodCheck.h.
|
override |
Definition at line 92 of file DerivedMethodShadowingBaseMethodCheck.cpp.