Lines Matching refs:PrevMethod

1763     const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];  in DiagnoseClassExtensionDupMethods()  local
1764 if (PrevMethod && in DiagnoseClassExtensionDupMethods()
1765 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods()
1766 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods()
1769 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
4014 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd() local
4015 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4017 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4021 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4024 if (PrevMethod) { in ActOnAtEnd()
4025 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4030 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4038 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd() local
4039 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4041 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4045 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4048 if (PrevMethod) { in ActOnAtEnd()
4049 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4054 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4830 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration() local
4833 PrevMethod = ImpDecl->getInstanceMethod(Sel); in ActOnMethodDeclaration()
4836 PrevMethod = ImpDecl->getClassMethod(Sel); in ActOnMethodDeclaration()
4978 if (PrevMethod) { in ActOnMethodDeclaration()
4982 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()