Lines Matching refs:PrevMethod

1761     const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];  in DiagnoseClassExtensionDupMethods()  local
1762 if (PrevMethod && in DiagnoseClassExtensionDupMethods()
1763 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods()
1764 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods()
1767 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
4006 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd() local
4007 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4009 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4013 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4016 if (PrevMethod) { in ActOnAtEnd()
4017 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4022 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4030 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd() local
4031 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4033 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4037 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4040 if (PrevMethod) { in ActOnAtEnd()
4041 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4046 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4822 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration() local
4825 PrevMethod = ImpDecl->getInstanceMethod(Sel); in ActOnMethodDeclaration()
4828 PrevMethod = ImpDecl->getClassMethod(Sel); in ActOnMethodDeclaration()
4970 if (PrevMethod) { in ActOnMethodDeclaration()
4974 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()