Changeset 3d7e53b for src/Parser/parser.yy
- Timestamp:
- Jul 10, 2018, 11:09:19 AM (5 years ago)
- Branches:
- aaron-thesis, arm-eh, 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
raeec6b7 r3d7e53b 1857 1857 aggregate_type: // struct, union 1858 1858 aggregate_key attribute_list_opt '{' field_declaration_list_opt '}' type_parameters_opt 1859 { $$ = DeclarationNode::newAggregate( $1, n ew string( DeclarationNode::anonymous.newName() ), $6, $4, true )->addQualifiers( $2 ); }1859 { $$ = DeclarationNode::newAggregate( $1, nullptr, $6, $4, true )->addQualifiers( $2 ); } 1860 1860 | aggregate_key attribute_list_opt no_attr_identifier fred 1861 1861 { … … 1981 1981 enum_type: // enum 1982 1982 ENUM attribute_list_opt '{' enumerator_list comma_opt '}' 1983 { $$ = DeclarationNode::newEnum( n ew string( DeclarationNode::anonymous.newName() ), $4, true )->addQualifiers( $2 ); }1983 { $$ = DeclarationNode::newEnum( nullptr, $4, true )->addQualifiers( $2 ); } 1984 1984 | ENUM attribute_list_opt no_attr_identifier 1985 1985 { typedefTable.makeTypedef( *$3 ); }
Note: See TracChangeset
for help on using the changeset viewer.