Lines Matching refs:OldMD
7072 if (CXXMethodDecl *OldMD = dyn_cast<CXXMethodDecl>(I)) { in AddOverriddenMethods() local
7073 MD->addOverriddenMethod(OldMD->getCanonicalDecl()); in AddOverriddenMethods()
7074 if (!CheckOverridingFunctionReturnType(MD, OldMD) && in AddOverriddenMethods()
7075 !CheckOverridingFunctionAttributes(MD, OldMD) && in AddOverriddenMethods()
7076 !CheckOverridingFunctionExceptionSpec(MD, OldMD) && in AddOverriddenMethods()
7077 !CheckIfOverriddenFunctionIsMarkedFinal(MD, OldMD)) { in AddOverriddenMethods()
7078 hasDeletedOverridenMethods |= OldMD->isDeleted(); in AddOverriddenMethods()
7079 hasNonDeletedOverridenMethods |= !OldMD->isDeleted(); in AddOverriddenMethods()
8736 CXXMethodDecl *OldMD = nullptr; in CheckFunctionDeclaration() local
8738 OldMD = dyn_cast_or_null<CXXMethodDecl>(OldDecl->getAsFunction()); in CheckFunctionDeclaration()
8739 if (!OldMD || !OldMD->isStatic()) { in CheckFunctionDeclaration()