Ignore:
Timestamp:
Jul 20, 2015, 2:29:52 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
18997b9
Parents:
2794fff (diff), 994ec2c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ctor

Conflicts:

src/Parser/ParseNode.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r2794fff r893256d  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul  3 13:53:45 2015
    13 // Update Count     : 1220
     12// Last Modified On : Thu Jul 16 16:25:12 2015
     13// Update Count     : 1267
    1414//
    1515
     
    5454#include "lex.h"
    5555#include "ParseNode.h"
     56#include "TypeData.h"
    5657#include "LinkageSpec.h"
    5758
     
    227228%type<decl> variable_abstract_array variable_abstract_declarator variable_abstract_function
    228229%type<decl> variable_abstract_ptr variable_array variable_declarator variable_function variable_ptr
     230
     231%type<decl> attribute_list_opt attribute_list attribute
    229232
    230233// initializers
     
    620623labeled_statement:
    621624        no_attr_identifier ':' attribute_list_opt statement
    622                 { $$ = $4->add_label( $1 );}
     625                {
     626                        $$ = $4->add_label( $1 );
     627                }
    623628        ;
    624629
     
    11821187        type_qualifier_name
    11831188        | attribute
    1184                 { $$ = DeclarationNode::newQualifier( DeclarationNode::Attribute ); }
     1189        //{ $$ = DeclarationNode::newQualifier( DeclarationNode::Attribute ); }
    11851190        ;
    11861191
     
    19972002attribute_list_opt:                                                                             // GCC
    19982003        // empty
     2004                { $$ = 0; }
    19992005        | attribute_list
    20002006        ;
     
    20032009        attribute
    20042010        | attribute_list attribute
     2011                { $$ = $2->addQualifiers( $1 ); }
    20052012        ;
    20062013
    20072014attribute:                                                                                              // GCC
    20082015        ATTRIBUTE '(' '(' attribute_parameter_list ')' ')'
     2016        //              { $$ = DeclarationNode::newQualifier( DeclarationNode::Attribute ); }
     2017                { $$ = 0; }
    20092018        ;
    20102019
     
    20592068variable_declarator:
    20602069        paren_identifier attribute_list_opt
     2070                { $$ = $1->addQualifiers( $2 ); }
    20612071        | variable_ptr
    20622072        | variable_array attribute_list_opt
     2073                { $$ = $1->addQualifiers( $2 ); }
    20632074        | variable_function attribute_list_opt
     2075                { $$ = $1->addQualifiers( $2 ); }
    20642076        ;
    20652077
     
    21082120function_declarator:
    21092121        function_no_ptr attribute_list_opt
     2122                { $$ = $1->addQualifiers( $2 ); }
    21102123        | function_ptr
    21112124        | function_array attribute_list_opt
     2125                { $$ = $1->addQualifiers( $2 ); }
    21122126        ;
    21132127
     
    21882202type_redeclarator:
    21892203        paren_type attribute_list_opt
     2204                { $$ = $1->addQualifiers( $2 ); }
    21902205        | type_ptr
    21912206        | type_array attribute_list_opt
     2207                { $$ = $1->addQualifiers( $2 ); }
    21922208        | type_function attribute_list_opt
     2209                { $$ = $1->addQualifiers( $2 ); }
    21932210        ;
    21942211
     
    22352252identifier_parameter_declarator:
    22362253        paren_identifier attribute_list_opt
     2254                { $$ = $1->addQualifiers( $2 ); }
    22372255        | identifier_parameter_ptr
    22382256        | identifier_parameter_array attribute_list_opt
     2257                { $$ = $1->addQualifiers( $2 ); }
    22392258        | identifier_parameter_function attribute_list_opt
     2259                { $$ = $1->addQualifiers( $2 ); }
    22402260        ;
    22412261
     
    22972317type_parameter_redeclarator:
    22982318        typedef attribute_list_opt
     2319                { $$ = $1->addQualifiers( $2 ); }
    22992320        | type_parameter_ptr
    23002321        | type_parameter_array attribute_list_opt
     2322                { $$ = $1->addQualifiers( $2 ); }
    23012323        | type_parameter_function attribute_list_opt
     2324                { $$ = $1->addQualifiers( $2 ); }
    23022325        ;
    23032326
     
    23502373        abstract_ptr
    23512374        | abstract_array attribute_list_opt
     2375                { $$ = $1->addQualifiers( $2 ); }
    23522376        | abstract_function attribute_list_opt
     2377                { $$ = $1->addQualifiers( $2 ); }
    23532378        ;
    23542379
     
    24172442        abstract_parameter_ptr
    24182443        | abstract_parameter_array attribute_list_opt
     2444                { $$ = $1->addQualifiers( $2 ); }
    24192445        | abstract_parameter_function attribute_list_opt
     2446                { $$ = $1->addQualifiers( $2 ); }
    24202447        ;
    24212448
     
    24932520        variable_abstract_ptr
    24942521        | variable_abstract_array attribute_list_opt
     2522                { $$ = $1->addQualifiers( $2 ); }
    24952523        | variable_abstract_function attribute_list_opt
     2524                { $$ = $1->addQualifiers( $2 ); }
    24962525        ;
    24972526
Note: See TracChangeset for help on using the changeset viewer.