Lines Matching refs:PrevMethod
1751 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods() local
1752 if (PrevMethod && in DiagnoseClassExtensionDupMethods()
1753 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods()
1754 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods()
1757 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
3905 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd() local
3906 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
3908 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
3912 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3915 if (PrevMethod) { in ActOnAtEnd()
3916 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
3921 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3929 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd() local
3930 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) in ActOnAtEnd()
3932 if ((isInterfaceDeclKind && PrevMethod && !match) in ActOnAtEnd()
3936 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3939 if (PrevMethod) { in ActOnAtEnd()
3940 Method->setAsRedeclaration(PrevMethod); in ActOnAtEnd()
3945 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
4644 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration() local
4647 PrevMethod = ImpDecl->getInstanceMethod(Sel); in ActOnMethodDeclaration()
4650 PrevMethod = ImpDecl->getClassMethod(Sel); in ActOnMethodDeclaration()
4689 if (PrevMethod) { in ActOnMethodDeclaration()
4693 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()