Lines Matching defs:PrevDecl

476   NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc,
479 if (!PrevDecl) {
489 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
493 if (declaresSameEntity(PrevDecl, IDecl)) {
499 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
508 if (PrevDecl && !SuperClassDecl) {
512 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
535 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
539 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
913 NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc,
916 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
918 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
922 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1135 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc,
1138 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) {
1149 /*PrevDecl=*/nullptr);
1152 if (PrevDecl) {
1158 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList);
1164 /*PrevDecl=*/PrevDecl);
1174 if (PrevDecl)
1175 mergeDeclAttributes(PDecl, PrevDecl);
1681 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second,
1686 PrevDecl);
1694 if (PrevDecl)
1695 mergeDeclAttributes(PDecl, PrevDecl);
1863 NamedDecl *PrevDecl
1866 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1868 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1869 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) {
1896 PrevDecl = LookupSingleName(TUScope, SuperClassname, SuperClassLoc,
1898 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1901 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1903 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1927 /*PrevDecl=*/nullptr, ClassLoc,
2927 NamedDecl *PrevDecl
2930 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
2938 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl);
2941 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2950 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2958 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
4194 NamedDecl *PrevDecl = R.getFoundDecl();
4195 if (S->isDeclScope(PrevDecl)) {
4200 Diag(PrevDecl->getLocation(),