Lines Matching refs:PrevDecl

552   NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc,  in ActOnSuperClassOfClassInterface()  local
555 if (!PrevDecl) { in ActOnSuperClassOfClassInterface()
564 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ActOnSuperClassOfClassInterface()
568 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface()
574 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnSuperClassOfClassInterface()
583 if (PrevDecl && !SuperClassDecl) { in ActOnSuperClassOfClassInterface()
587 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
610 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnSuperClassOfClassInterface()
614 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
985 NamedDecl *PrevDecl = in ActOnStartClassInterface() local
989 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassInterface()
991 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
995 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassInterface()
1219 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface() local
1222 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1241 if (PrevDecl) { in ActOnStartProtocolInterface()
1247 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList); in ActOnStartProtocolInterface()
1253 /*PrevDecl=*/PrevDecl); in ActOnStartProtocolInterface()
1263 if (PrevDecl) in ActOnStartProtocolInterface()
1264 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1780 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, in ActOnForwardProtocolDeclaration() local
1785 PrevDecl); in ActOnForwardProtocolDeclaration()
1793 if (PrevDecl) in ActOnForwardProtocolDeclaration()
1794 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1972 NamedDecl *PrevDecl in ActOnStartClassImplementation() local
1975 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1977 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1978 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) { in ActOnStartClassImplementation()
2006 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc, in ActOnStartClassImplementation()
2008 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
2011 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
2013 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassImplementation()
3054 NamedDecl *PrevDecl in ActOnForwardClassDeclaration() local
3057 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnForwardClassDeclaration()
3065 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl); in ActOnForwardClassDeclaration()
3068 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3077 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3085 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnForwardClassDeclaration()
4763 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnMethodDeclaration() local
4764 if (S->isDeclScope(PrevDecl)) { in ActOnMethodDeclaration()
4769 Diag(PrevDecl->getLocation(), in ActOnMethodDeclaration()