Lines Matching defs:PrevDecl

559   NamedDecl *PrevDecl = SemaRef.LookupSingleName(
562 if (!PrevDecl) {
571 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
575 if (declaresSameEntity(PrevDecl, IDecl)) {
581 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
590 if (PrevDecl && !SuperClassDecl) {
594 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
618 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
622 if (!isa_and_nonnull<TypedefNameDecl>(PrevDecl)) {
985 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
989 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
991 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
995 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1224 ObjCProtocolDecl *PrevDecl = LookupProtocol(
1227 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) {
1234 /*PrevDecl=*/Def);
1252 if (PrevDecl) {
1258 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList);
1264 /*PrevDecl=*/PrevDecl);
1275 if (PrevDecl)
1276 SemaRef.mergeDeclAttributes(PDecl, PrevDecl);
1792 ObjCProtocolDecl *PrevDecl = LookupProtocol(
1796 IdentPair.second, AtProtocolLoc, PrevDecl);
1804 if (PrevDecl)
1805 SemaRef.mergeDeclAttributes(PDecl, PrevDecl);
1987 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
1990 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1992 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1993 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) {
2021 PrevDecl =
2024 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
2027 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2029 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
2054 /*PrevDecl=*/nullptr, ClassLoc, true);
3066 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
3069 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
3077 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl);
3080 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
3089 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
3097 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
4738 NamedDecl *PrevDecl = R.getFoundDecl();
4739 if (S->isDeclScope(PrevDecl)) {
4744 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
5642 NamedDecl *PrevDecl =
5645 if (PrevDecl && SemaRef.isDeclInScope(PrevDecl, EnclosingContext, S) &&
5646 !isa<TagDecl>(PrevDecl)) {
5648 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);