Lines Matching refs:PrevDecl
475 NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, in ActOnSuperClassOfClassInterface() local
478 if (!PrevDecl) { in ActOnSuperClassOfClassInterface()
488 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ActOnSuperClassOfClassInterface()
492 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface()
498 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnSuperClassOfClassInterface()
507 if (PrevDecl && !SuperClassDecl) { in ActOnSuperClassOfClassInterface()
511 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
534 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnSuperClassOfClassInterface()
538 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
912 NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc, in ActOnStartClassInterface() local
915 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassInterface()
917 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
921 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassInterface()
1134 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface() local
1137 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1151 if (PrevDecl) { in ActOnStartProtocolInterface()
1157 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList); in ActOnStartProtocolInterface()
1163 /*PrevDecl=*/PrevDecl); in ActOnStartProtocolInterface()
1173 if (PrevDecl) in ActOnStartProtocolInterface()
1174 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1689 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, in ActOnForwardProtocolDeclaration() local
1694 PrevDecl); in ActOnForwardProtocolDeclaration()
1702 if (PrevDecl) in ActOnForwardProtocolDeclaration()
1703 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1878 NamedDecl *PrevDecl in ActOnStartClassImplementation() local
1881 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1883 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1884 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) { in ActOnStartClassImplementation()
1911 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc, in ActOnStartClassImplementation()
1913 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation()
1916 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1918 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassImplementation()
2955 NamedDecl *PrevDecl in ActOnForwardClassDeclaration() local
2958 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnForwardClassDeclaration()
2966 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl); in ActOnForwardClassDeclaration()
2969 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
2978 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
2986 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnForwardClassDeclaration()
4343 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnMethodDeclaration() local
4344 if (S->isDeclScope(PrevDecl)) { in ActOnMethodDeclaration()
4349 Diag(PrevDecl->getLocation(), in ActOnMethodDeclaration()