Home | History | Annotate | Download | only in Sema

Lines Matching defs:PrevDecl

454   NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc,
457 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
459 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
463 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
506 PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc,
509 if (!PrevDecl) {
516 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
518 << SuperName << ClassName << PrevDecl->getDeclName();
519 Diag(PrevDecl->getLocation(), diag::note_previous_decl)
520 << PrevDecl->getDeclName();
524 if (declaresSameEntity(PrevDecl, IDecl)) {
530 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
536 if (PrevDecl && SuperClassDecl == 0) {
540 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
561 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
565 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
683 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc,
686 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : 0) {
697 /*PrevDecl=*/0);
700 if (PrevDecl) {
706 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList);
712 /*PrevDecl=*/PrevDecl);
722 if (PrevDecl)
723 mergeDeclAttributes(PDecl, PrevDecl);
819 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentList[i].second,
824 PrevDecl);
832 if (PrevDecl)
833 mergeDeclAttributes(PDecl, PrevDecl);
976 NamedDecl *PrevDecl
979 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
981 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
982 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) {
1013 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc,
1015 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1018 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1020 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1043 ClassName, /*PrevDecl=*/0, ClassLoc,
1932 NamedDecl *PrevDecl
1935 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1943 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl);
1946 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1954 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1962 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
3129 NamedDecl *PrevDecl = R.getFoundDecl();
3130 if (S->isDeclScope(PrevDecl)) {
3135 Diag(PrevDecl->getLocation(),