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()
1228 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface() local
1231 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1256 if (PrevDecl) { in ActOnStartProtocolInterface()
1262 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList); in ActOnStartProtocolInterface()
1268 /*PrevDecl=*/PrevDecl); in ActOnStartProtocolInterface()
1278 if (PrevDecl) in ActOnStartProtocolInterface()
1279 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1796 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, in ActOnForwardProtocolDeclaration() local
1801 PrevDecl); in ActOnForwardProtocolDeclaration()
1809 if (PrevDecl) in ActOnForwardProtocolDeclaration()
1810 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1988 NamedDecl *PrevDecl in ActOnStartClassImplementation() local
1991 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1993 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1994 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) { in ActOnStartClassImplementation()
2022 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc, in ActOnStartClassImplementation()
2024 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
2027 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
2029 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassImplementation()
3068 NamedDecl *PrevDecl in ActOnForwardClassDeclaration() local
3071 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnForwardClassDeclaration()
3079 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl); in ActOnForwardClassDeclaration()
3082 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3091 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3099 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnForwardClassDeclaration()
4783 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnMethodDeclaration() local
4784 if (S->isDeclScope(PrevDecl)) { in ActOnMethodDeclaration()
4789 Diag(PrevDecl->getLocation(), in ActOnMethodDeclaration()