Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r6f95000 rddfd945  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Mar 16 12:57:03 2017
    13 // Update Count     : 2316
     12// Last Modified On : Thu Mar 16 08:36:17 2017
     13// Update Count     : 2310
    1414//
    1515
     
    16081608aggregate_type:                                                                                 // struct, union
    16091609        aggregate_key attribute_list_opt '{' field_declaration_list '}'
    1610                 { $$ = DeclarationNode::newAggregate( $1, new string( DeclarationNode::anonymous.newName() ), nullptr, $4, true )->addQualifiers( $2 ); }
     1610                { $$ = DeclarationNode::newAggregate( $1, nullptr, nullptr, $4, true )->addQualifiers( $2 ); }
    16111611        | aggregate_key attribute_list_opt no_attr_identifier_or_type_name
    16121612                { typedefTable.makeTypedef( *$3 ); }
     
    16141614                { $$ = DeclarationNode::newAggregate( $1, $3, nullptr, $6, true )->addQualifiers( $2 ); }
    16151615        | aggregate_key attribute_list_opt '(' type_name_list ')' '{' field_declaration_list '}' // CFA
    1616                 { $$ = DeclarationNode::newAggregate( $1, new string( DeclarationNode::anonymous.newName() ), $4, $7, false )->addQualifiers( $2 ); }
     1616                { $$ = DeclarationNode::newAggregate( $1, nullptr, $4, $7, false )->addQualifiers( $2 ); }
    16171617        | aggregate_type_nobody
    16181618        ;
     
    16841684        // empty
    16851685                { $$ = DeclarationNode::newName( 0 ); /* XXX */ } // CFA, no field name
    1686         // '@'
    1687         //      { $$ = DeclarationNode::newName( new string( DeclarationNode::anonymous.newName() ) ); } // CFA, no field name
     1686        // '@' // empty
     1687        //      { $$ = DeclarationNode::newName( 0 ); /* XXX */ } // CFA, no field name
    16881688        | bit_subrange_size                                                                     // no field name
    16891689                { $$ = DeclarationNode::newBitfield( $1 ); }
     
    17111711enum_type:                                                                                              // enum
    17121712        ENUM attribute_list_opt '{' enumerator_list comma_opt '}'
    1713                 { $$ = DeclarationNode::newEnum( new string( DeclarationNode::anonymous.newName() ), $4, true )->addQualifiers( $2 ); }
     1713                { $$ = DeclarationNode::newEnum( nullptr, $4, true )->addQualifiers( $2 ); }
    17141714        | ENUM attribute_list_opt no_attr_identifier_or_type_name
    17151715                { typedefTable.makeTypedef( *$3 ); }
Note: See TracChangeset for help on using the changeset viewer.