Home
last modified time | relevance | path

Searched refs:OldMethod (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Sema/
DSemaDecl.cpp2788 const CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in MergeFunctionDecl() local
2790 if (OldMethod && NewMethod) { in MergeFunctionDecl()
2792 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()
2798 OldMethod->isFunctionTemplateSpecialization() && in MergeFunctionDecl()
2807 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()
2819 if (isa<CXXConstructorDecl>(OldMethod)) in MergeFunctionDecl()
2841 } else if (OldMethod->isImplicit()) { in MergeFunctionDecl()
2847 << New << getSpecialMember(OldMethod); in MergeFunctionDecl()
2850 } else if (OldMethod->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
2853 << getSpecialMember(OldMethod); in MergeFunctionDecl()
DSemaOverload.cpp1016 CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in IsOverload() local
1018 if (OldMethod && NewMethod && in IsOverload()
1019 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()
1020 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()
1022 (OldMethod->getRefQualifier() == RQ_None || in IsOverload()
1031 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
1032 Diag(OldMethod->getLocation(), diag::note_previous_declaration); in IsOverload()
1041 unsigned OldQuals = OldMethod->getTypeQualifiers(); in IsOverload()