Lines Matching defs:MethodDecl
80 bool VisitCXXMethodDecl(CXXMethodDecl *MethodDecl) {
81 if (MethodDecl->isThisDeclarationADefinition() && MethodDecl->hasBody()) {
84 for (const auto *Overridden : MethodDecl->overridden_methods()) {
90 // Now find if the superclass method is called in `MethodDecl`.
92 Visitor.TraverseDecl(MethodDecl);
96 Diags.Report(MethodDecl->getLocation(), WarningSuperNotCalled)
97 << LeftOverriddens << MethodDecl;
129 const CXXMethodDecl *MethodDecl) {
130 if (MethodDecl->hasAttr<FinalAttr>()) {
134 Diags.Report(MethodDecl->getLocation(), ID);