Lines Matching defs:NewMethod
141 void SemaObjC::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,
145 !NewMethod->hasRelatedResultType()) {
150 QualType ResultType = NewMethod->getReturnType();
151 SourceRange ResultTypeRange = NewMethod->getReturnTypeSourceRange();
155 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext());
157 DeclContext *DC = NewMethod->getDeclContext();
168 Diag(NewMethod->getLocation(),
174 Diag(NewMethod->getLocation(),
190 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() !=
192 Diag(NewMethod->getLocation(),
199 if ((NewMethod->hasAttr<NSReturnsNotRetainedAttr>() !=
201 Diag(NewMethod->getLocation(),
211 for (ObjCMethodDecl::param_iterator ni = NewMethod->param_begin(),
212 ne = NewMethod->param_end();