Home | History | Annotate | Download | only in Sema

Lines Matching defs:PrevDecl

465   NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc,
468 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
470 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
474 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
517 PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc,
520 if (!PrevDecl) {
529 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
533 if (declaresSameEntity(PrevDecl, IDecl)) {
539 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
545 if (PrevDecl && !SuperClassDecl) {
549 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
570 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
574 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
714 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc,
717 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) {
728 /*PrevDecl=*/nullptr);
731 if (PrevDecl) {
737 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList);
743 /*PrevDecl=*/PrevDecl);
753 if (PrevDecl)
754 mergeDeclAttributes(PDecl, PrevDecl);
865 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentList[i].second,
870 PrevDecl);
878 if (PrevDecl)
879 mergeDeclAttributes(PDecl, PrevDecl);
1022 NamedDecl *PrevDecl
1025 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1027 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1028 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) {
1055 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc,
1057 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1060 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1062 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1085 ClassName, /*PrevDecl=*/nullptr, ClassLoc,
2026 NamedDecl *PrevDecl
2029 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
2037 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl);
2040 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2048 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2056 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
3106 NamedDecl *PrevDecl = R.getFoundDecl();
3107 if (S->isDeclScope(PrevDecl)) {
3112 Diag(PrevDecl->getLocation(),