Lines Matching defs:PrevMethod
1773 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];
1774 if (PrevMethod &&
1775 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) &&
1776 !MatchTwoMethodDeclarations(Method, PrevMethod)) {
1779 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4019 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()];
4020 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
4022 if ((isInterfaceDeclKind && PrevMethod && !match)
4026 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4029 if (PrevMethod) {
4030 Method->setAsRedeclaration(PrevMethod);
4035 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4043 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()];
4044 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
4046 if ((isInterfaceDeclKind && PrevMethod && !match)
4050 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4053 if (PrevMethod) {
4054 Method->setAsRedeclaration(PrevMethod);
4059 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4850 const ObjCMethodDecl *PrevMethod = nullptr;
4853 PrevMethod = ImpDecl->getInstanceMethod(Sel);
4856 PrevMethod = ImpDecl->getClassMethod(Sel);
4998 if (PrevMethod) {
5002 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);