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 (!isa_and_nonnull<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()
1220 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface() local
1223 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1242 if (PrevDecl) { in ActOnStartProtocolInterface()
1248 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList); in ActOnStartProtocolInterface()
1254 /*PrevDecl=*/PrevDecl); in ActOnStartProtocolInterface()
1264 if (PrevDecl) in ActOnStartProtocolInterface()
1265 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1782 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, in ActOnForwardProtocolDeclaration() local
1787 PrevDecl); in ActOnForwardProtocolDeclaration()
1795 if (PrevDecl) in ActOnForwardProtocolDeclaration()
1796 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1974 NamedDecl *PrevDecl in ActOnStartClassImplementation() local
1977 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1979 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1980 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) { in ActOnStartClassImplementation()
2008 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc, in ActOnStartClassImplementation()
2010 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
2013 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
2015 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassImplementation()
3060 NamedDecl *PrevDecl in ActOnForwardClassDeclaration() local
3063 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnForwardClassDeclaration()
3071 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl); in ActOnForwardClassDeclaration()
3074 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3083 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3091 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnForwardClassDeclaration()
4771 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnMethodDeclaration() local
4772 if (S->isDeclScope(PrevDecl)) { in ActOnMethodDeclaration()
4777 Diag(PrevDecl->getLocation(), in ActOnMethodDeclaration()