Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaDecl.cpp2902 const CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in MergeFunctionDecl() local
2904 if (OldMethod && NewMethod) { in MergeFunctionDecl()
2906 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()
2912 OldMethod->isFunctionTemplateSpecialization() && in MergeFunctionDecl()
2921 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()
2933 if (isa<CXXConstructorDecl>(OldMethod)) in MergeFunctionDecl()
2955 } else if (OldMethod->isImplicit()) { in MergeFunctionDecl()
2961 << New << getSpecialMember(OldMethod); in MergeFunctionDecl()
2964 } else if (OldMethod->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
2967 << getSpecialMember(OldMethod); in MergeFunctionDecl()
DSemaOverload.cpp1028 CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in IsOverload() local
1030 if (OldMethod && NewMethod && in IsOverload()
1031 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()
1032 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()
1034 (OldMethod->getRefQualifier() == RQ_None || in IsOverload()
1043 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
1044 Diag(OldMethod->getLocation(), diag::note_previous_declaration); in IsOverload()
1053 unsigned OldQuals = OldMethod->getTypeQualifiers(); in IsOverload()