Lines Matching refs:PrevDecl
547 NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, in ActOnSuperClassOfClassInterface() local
550 if (!PrevDecl) { in ActOnSuperClassOfClassInterface()
560 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ActOnSuperClassOfClassInterface()
564 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface()
570 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnSuperClassOfClassInterface()
579 if (PrevDecl && !SuperClassDecl) { in ActOnSuperClassOfClassInterface()
583 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
606 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnSuperClassOfClassInterface()
610 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
983 NamedDecl *PrevDecl = in ActOnStartClassInterface() local
987 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassInterface()
989 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
993 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassInterface()
1212 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface() local
1215 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1234 if (PrevDecl) { in ActOnStartProtocolInterface()
1240 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList); in ActOnStartProtocolInterface()
1246 /*PrevDecl=*/PrevDecl); in ActOnStartProtocolInterface()
1256 if (PrevDecl) in ActOnStartProtocolInterface()
1257 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1770 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, in ActOnForwardProtocolDeclaration() local
1775 PrevDecl); in ActOnForwardProtocolDeclaration()
1783 if (PrevDecl) in ActOnForwardProtocolDeclaration()
1784 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1957 NamedDecl *PrevDecl in ActOnStartClassImplementation() local
1960 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1962 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1963 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) { in ActOnStartClassImplementation()
1990 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc, in ActOnStartClassImplementation()
1992 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1995 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1997 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassImplementation()
3026 NamedDecl *PrevDecl in ActOnForwardClassDeclaration() local
3029 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnForwardClassDeclaration()
3037 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl); in ActOnForwardClassDeclaration()
3040 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3049 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
3057 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnForwardClassDeclaration()
4585 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnMethodDeclaration() local
4586 if (S->isDeclScope(PrevDecl)) { in ActOnMethodDeclaration()
4591 Diag(PrevDecl->getLocation(), in ActOnMethodDeclaration()