Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    r44a81853 r8f60f0b  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jan 14 14:36:23 2017
    13 // Update Count     : 669
     12// Last Modified On : Tue Dec 13 14:43:38 2016
     13// Update Count     : 660
    1414//
    1515
     
    2222#include "TypeData.h"
    2323
    24 #include "SynTree/Attribute.h"
    2524#include "SynTree/Declaration.h"
    2625#include "SynTree/Expression.h"
     
    398397}
    399398
    400 DeclarationNode * DeclarationNode::newAttribute( string * name, ExpressionNode * expr ) {
    401         DeclarationNode * newnode = new DeclarationNode;
    402         newnode->type = nullptr;
    403         std::list< Expression * > exprs;
    404         buildList( expr, exprs );
    405         newnode->attributes.push_back( new Attribute( *name, exprs ) );
    406         delete name;
    407         return newnode;
    408 }
    409 
    410399void appendError( string & dst, const string & src ) {
    411400        if ( src.empty() ) return;
     
    446435                storageClass = q->storageClass;
    447436        } // if
    448         attributes.splice( attributes.end(), q->attributes );
    449437        return this;
    450438} // DeclarationNode::copyStorageClasses
     
    970958
    971959        if ( type ) {
    972                 return buildDecl( type, name ? *name : string( "" ), storageClass, maybeBuild< Expression >( bitfieldWidth ), isInline, isNoreturn, linkage, asmName, maybeBuild< Initializer >(initializer), attributes )->set_extension( extension );
     960                return buildDecl( type, name ? *name : string( "" ), storageClass, maybeBuild< Expression >( bitfieldWidth ), isInline, isNoreturn, linkage, asmName, maybeBuild< Initializer >(initializer) )->set_extension( extension );
    973961        } // if
    974962
Note: See TracChangeset for help on using the changeset viewer.