Searched refs:OldMethod (Results 1 – 2 of 2) sorted by relevance
2976 const CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in MergeFunctionDecl() local2978 if (OldMethod && NewMethod) { in MergeFunctionDecl()2980 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()2986 OldMethod->isFunctionTemplateSpecialization() && in MergeFunctionDecl()2995 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()3007 if (isa<CXXConstructorDecl>(OldMethod)) in MergeFunctionDecl()3029 } else if (OldMethod->isImplicit()) { in MergeFunctionDecl()3035 << New << getSpecialMember(OldMethod); in MergeFunctionDecl()3038 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()3041 << getSpecialMember(OldMethod); in MergeFunctionDecl()
1066 CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in IsOverload() local1068 if (OldMethod && NewMethod && in IsOverload()1069 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()1070 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()1072 (OldMethod->getRefQualifier() == RQ_None || in IsOverload()1081 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()1082 Diag(OldMethod->getLocation(), diag::note_previous_declaration); in IsOverload()1091 unsigned OldQuals = OldMethod->getTypeQualifiers(); in IsOverload()