Home | History | Annotate | Download | only in Sema

Lines Matching refs:PrevMethod

775     const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];
776 if (PrevMethod && !MatchTwoMethodDeclarations(Method, PrevMethod)) {
779 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2340 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()];
2341 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
2343 if ((isInterfaceDeclKind && PrevMethod && !match)
2347 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2350 if (PrevMethod) {
2351 Method->setAsRedeclaration(PrevMethod);
2356 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2364 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()];
2365 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod)
2367 if ((isInterfaceDeclKind && PrevMethod && !match)
2371 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2374 if (PrevMethod) {
2375 Method->setAsRedeclaration(PrevMethod);
2380 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
2978 const ObjCMethodDecl *PrevMethod = 0;
2981 PrevMethod = ImpDecl->getInstanceMethod(Sel);
2984 PrevMethod = ImpDecl->getClassMethod(Sel);
3005 if (PrevMethod) {
3009 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);