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