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/parser.yy

    raeec6b7 r3d7e53b  
    18571857aggregate_type:                                                                                 // struct, union
    18581858        aggregate_key attribute_list_opt '{' field_declaration_list_opt '}' type_parameters_opt
    1859                 { $$ = DeclarationNode::newAggregate( $1, new string( DeclarationNode::anonymous.newName() ), $6, $4, true )->addQualifiers( $2 ); }
     1859                { $$ = DeclarationNode::newAggregate( $1, nullptr, $6, $4, true )->addQualifiers( $2 ); }
    18601860        | aggregate_key attribute_list_opt no_attr_identifier fred
    18611861                {
     
    19811981enum_type:                                                                                              // enum
    19821982        ENUM attribute_list_opt '{' enumerator_list comma_opt '}'
    1983                 { $$ = DeclarationNode::newEnum( new string( DeclarationNode::anonymous.newName() ), $4, true )->addQualifiers( $2 ); }
     1983                { $$ = DeclarationNode::newEnum( nullptr, $4, true )->addQualifiers( $2 ); }
    19841984        | ENUM attribute_list_opt no_attr_identifier
    19851985                { typedefTable.makeTypedef( *$3 ); }
Note: See TracChangeset for help on using the changeset viewer.