Lines Matching refs:NewMethod
1889 CXXMethodDecl* NewMethod = dyn_cast<CXXMethodDecl>(New);
1890 if (OldMethod && NewMethod) {
1892 NewMethod->setTrivial(OldMethod->isTrivial());
1899 NewMethod->isFunctionTemplateSpecialization();
1900 bool isFriend = NewMethod->getFriendObjectKind();
1902 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() &&
1907 if (OldMethod->isStatic() || NewMethod->isStatic()) {
1920 else if (isa<CXXDestructorDecl>(NewMethod))
1922 else if (isa<CXXConversionDecl>(NewMethod))
1937 NewMethod->setImplicit();
1939 Diag(NewMethod->getLocation(),
1945 Diag(NewMethod->getLocation(),
2143 void Sema::mergeObjCMethodDecls(ObjCMethodDecl *newMethod,
2147 bool mergeDeprecation = isa<ObjCImplDecl>(newMethod->getDeclContext());
2150 mergeDeclAttributes(newMethod, oldMethod, mergeDeprecation);
2155 ni = newMethod->param_begin(), ne = newMethod->param_end();
2159 CheckObjCMethodOverride(newMethod, oldMethod, true);