Lines Matching refs:PrevMethod

1777     const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];  in DiagnoseClassExtensionDupMethods()  local
1778 if (PrevMethod && in DiagnoseClassExtensionDupMethods()
1779 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods()
1780 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods()
1783 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
4022 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd() local
4023 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4025 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4029 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4032 if (PrevMethod) { in ActOnAtEnd()
4033 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4038 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4046 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd() local
4047 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
4049 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
4053 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4056 if (PrevMethod) { in ActOnAtEnd()
4057 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
4062 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4842 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration() local
4845 PrevMethod = ImpDecl->getInstanceMethod(Sel); in ActOnMethodDeclaration()
4848 PrevMethod = ImpDecl->getClassMethod(Sel); in ActOnMethodDeclaration()
4990 if (PrevMethod) { in ActOnMethodDeclaration()
4994 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()