Home | History | Annotate | Download | only in Sema

Lines Matching refs:PrevMethod

1670     const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];
1671 if (PrevMethod &&
1672 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) &&
1673 !MatchTwoMethodDeclarations(Method, PrevMethod)) {
1676 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3724 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()];
3725 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
3727 if ((isInterfaceDeclKind && PrevMethod && !match)
3731 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3734 if (PrevMethod) {
3735 Method->setAsRedeclaration(PrevMethod);
3740 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3748 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()];
3749 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
3751 if ((isInterfaceDeclKind && PrevMethod && !match)
3755 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3758 if (PrevMethod) {
3759 Method->setAsRedeclaration(PrevMethod);
3764 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4239 ObjCMethodDecl *prevMethod) {
4241 if (prevMethod->hasAttr<ObjCRequiresSuperAttr>() &&
4255 prevMethod->getReturnTypeSourceRange().getBegin(),
4256 prevMethod->getReturnType(),
4257 prevMethod->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability);
4262 unsigned numPrevParams = prevMethod->param_size();
4265 ParmVarDecl *prevParam = prevMethod->param_begin()[i];
4401 const ObjCMethodDecl *PrevMethod = nullptr;
4404 PrevMethod = ImpDecl->getInstanceMethod(Sel);
4407 PrevMethod = ImpDecl->getClassMethod(Sel);
4430 if (PrevMethod) {
4434 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);