Lines Matching defs:PrevMethod
845 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];
846 if (PrevMethod &&
847 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) &&
848 !MatchTwoMethodDeclarations(Method, PrevMethod)) {
851 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2572 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()];
2573 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
2575 if ((isInterfaceDeclKind && PrevMethod && !match)
2579 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2582 if (PrevMethod) {
2583 Method->setAsRedeclaration(PrevMethod);
2588 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2596 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()];
2597 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
2599 if ((isInterfaceDeclKind && PrevMethod && !match)
2603 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2606 if (PrevMethod) {
2607 Method->setAsRedeclaration(PrevMethod);
2612 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3164 const ObjCMethodDecl *PrevMethod = nullptr;
3167 PrevMethod = ImpDecl->getInstanceMethod(Sel);
3170 PrevMethod = ImpDecl->getClassMethod(Sel);
3195 if (PrevMethod) {
3199 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);