Lines Matching refs:PrevMethod
1670 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods() local
1671 if (PrevMethod && in DiagnoseClassExtensionDupMethods()
1672 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods()
1673 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods()
1676 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
3724 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd() local
3725 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
3727 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
3731 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3734 if (PrevMethod) { in ActOnAtEnd()
3735 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
3740 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3748 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd() local
3749 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
3751 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
3755 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3758 if (PrevMethod) { in ActOnAtEnd()
3759 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
3764 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4401 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration() local
4404 PrevMethod = ImpDecl->getInstanceMethod(Sel); in ActOnMethodDeclaration()
4407 PrevMethod = ImpDecl->getClassMethod(Sel); in ActOnMethodDeclaration()
4430 if (PrevMethod) { in ActOnMethodDeclaration()
4434 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()