Ignore:
Timestamp:
Jul 10, 2018, 11:09:19 AM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
5cacf74
Parents:
aeec6b7
Message:

Add anon flag to TypeData? and remove anonymous members for named aggregates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cc

    raeec6b7 r3d7e53b  
    6363                enumeration.constants = nullptr;
    6464                enumeration.body = false;
     65                enumeration.anon = false;
    6566                break;
    6667          case Aggregate:
     
    7475                aggregate.tagged = false;
    7576                aggregate.parent = nullptr;
     77                aggregate.anon = false;
    7678                break;
    7779          case AggregateInst:
     
    216218                newtype->aggregate.fields = maybeClone( aggregate.fields );
    217219                newtype->aggregate.body = aggregate.body;
     220                newtype->aggregate.anon = aggregate.anon;
    218221                newtype->aggregate.tagged = aggregate.tagged;
    219222                newtype->aggregate.parent = aggregate.parent ? new string( *aggregate.parent ) : nullptr;
     
    228231                newtype->enumeration.constants = maybeClone( enumeration.constants );
    229232                newtype->enumeration.body = enumeration.body;
     233                newtype->enumeration.anon = enumeration.anon;
    230234                break;
    231235          case Symbolic:
Note: See TracChangeset for help on using the changeset viewer.