Lines Matching refs:PrevMethod
1774 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods() local
1775 if (PrevMethod && in DiagnoseClassExtensionDupMethods()
1776 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods()
1777 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods()
1780 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
4026 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd() local
4027 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4029 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4033 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4036 if (PrevMethod) { in ActOnAtEnd()
4037 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4042 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4050 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd() local
4051 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4053 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4057 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4060 if (PrevMethod) { in ActOnAtEnd()
4061 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4066 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4855 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration() local
4858 PrevMethod = ImpDecl->getInstanceMethod(Sel); in ActOnMethodDeclaration()
4861 PrevMethod = ImpDecl->getClassMethod(Sel); in ActOnMethodDeclaration()
5003 if (PrevMethod) { in ActOnMethodDeclaration()
5007 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()