Lines Matching defs:NewMethod
2629 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New);
2630 if (OldMethod && NewMethod) {
2632 NewMethod->setTrivial(OldMethod->isTrivial());
2639 NewMethod->isFunctionTemplateSpecialization();
2640 bool isFriend = NewMethod->getFriendObjectKind();
2642 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() &&
2647 if (OldMethod->isStatic() != NewMethod->isStatic()) {
2661 else if (isa<CXXDestructorDecl>(NewMethod))
2663 else if (isa<CXXConversionDecl>(NewMethod))
2682 NewMethod->setImplicit();
2684 Diag(NewMethod->getLocation(),
2690 Diag(NewMethod->getLocation(),
2948 void Sema::mergeObjCMethodDecls(ObjCMethodDecl *newMethod,
2953 isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration
2955 mergeDeclAttributes(newMethod, oldMethod, MergeKind);
2961 ni = newMethod->param_begin(), ne = newMethod->param_end();
2965 CheckObjCMethodOverride(newMethod