Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    rf9cebb5 r5d125e4  
    6464class DeclarationWithType : public Declaration {
    6565  public:
    66         DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, const std::list< Attribute * > & attributes );
     66        DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage );
    6767        DeclarationWithType( const DeclarationWithType &other );
    6868        virtual ~DeclarationWithType();
     
    7575        int get_scopeLevel() const { return scopeLevel; }
    7676        void set_scopeLevel( int newValue ) { scopeLevel = newValue; }
    77 
    78         std::list< Attribute * >& get_attributes() { return attributes; }
    79         const std::list< Attribute * >& get_attributes() const { return attributes; }
    8077
    8178        virtual DeclarationWithType *clone() const = 0;
     
    9087        // shadowed identifiers can be accessed
    9188        int scopeLevel = 0;
    92 
    93         std::list< Attribute * > attributes;
    9489};
    9590
     
    9792        typedef DeclarationWithType Parent;
    9893  public:
    99         ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init, const std::list< Attribute * > attributes = std::list< Attribute * >(), bool isInline = false, bool isNoreturn = false );
     94        ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init, bool isInline = false, bool isNoreturn = false );
    10095        ObjectDecl( const ObjectDecl &other );
    10196        virtual ~ObjectDecl();
     
    136131        std::list< std::string >& get_oldIdents() { return oldIdents; }
    137132        std::list< Declaration* >& get_oldDecls() { return oldDecls; }
     133        std::list< Attribute * >& get_attributes() { return attributes; }
    138134
    139135        virtual FunctionDecl *clone() const { return new FunctionDecl( *this ); }
     
    147143        std::list< std::string > oldIdents;
    148144        std::list< Declaration* > oldDecls;
     145        std::list< Attribute * > attributes;
    149146};
    150147
Note: See TracChangeset for help on using the changeset viewer.