Lines Matching defs:PrevDecl
560 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
563 if (!PrevDecl) {
572 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
576 if (declaresSameEntity(PrevDecl, IDecl)) {
582 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
591 if (PrevDecl && !SuperClassDecl) {
595 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
619 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
623 if (!isa_and_nonnull<TypedefNameDecl>(PrevDecl)) {
986 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
990 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
992 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
996 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1225 ObjCProtocolDecl *PrevDecl = LookupProtocol(
1228 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) {
1235 /*PrevDecl=*/Def);
1253 if (PrevDecl) {
1259 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList);
1265 /*PrevDecl=*/PrevDecl);
1276 if (PrevDecl)
1277 SemaRef.mergeDeclAttributes(PDecl, PrevDecl);
1793 ObjCProtocolDecl *PrevDecl = LookupProtocol(
1797 IdentPair.second, AtProtocolLoc, PrevDecl);
1805 if (PrevDecl)
1806 SemaRef.mergeDeclAttributes(PDecl, PrevDecl);
1988 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
1991 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
1993 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1994 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) {
2022 PrevDecl =
2025 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
2028 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2030 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
2055 /*PrevDecl=*/nullptr, ClassLoc, true);
3068 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
3071 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
3079 TypedefNameDecl *TDD = dyn_cast<TypedefNameDecl>(PrevDecl);
3082 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
3091 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
3099 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
4793 NamedDecl *PrevDecl = R.getFoundDecl();
4794 if (S->isDeclScope(PrevDecl)) {
4799 Diag(PrevDecl->getLocation(),
5649 NamedDecl *PrevDecl =
5652 if (PrevDecl && SemaRef.isDeclInScope(PrevDecl, EnclosingContext, S) &&
5653 !isa<TagDecl>(PrevDecl)) {
5655 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);