Lines Matching refs:newMethod
2503 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New);
2504 if (OldMethod && NewMethod) {
2506 NewMethod->setTrivial(OldMethod->isTrivial());
2513 NewMethod->isFunctionTemplateSpecialization();
2514 bool isFriend = NewMethod->getFriendObjectKind();
2516 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() &&
2521 if (OldMethod->isStatic() != NewMethod->isStatic()) {
2535 else if (isa<CXXDestructorDecl>(NewMethod))
2537 else if (isa<CXXConversionDecl>(NewMethod))
2556 NewMethod->setImplicit();
2558 Diag(NewMethod->getLocation(),
2564 Diag(NewMethod->getLocation(),
2806 void Sema::mergeObjCMethodDecls(ObjCMethodDecl *newMethod,
2811 isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration
2813 mergeDeclAttributes(newMethod, oldMethod, MergeKind);
2819 ni = newMethod->param_begin(), ne = newMethod->param_end();
2823 CheckObjCMethodOverride(newMethod, oldMethod);