Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    rc0aa336 r8f60f0b  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jan 20 15:07:29 2017
    13 // Update Count     : 53
     12// Last Modified On : Tue Dec 13 13:37:33 2016
     13// Update Count     : 49
    1414//
    1515
     
    225225        typedef Declaration Parent;
    226226  public:
    227         AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() );
     227        AggregateDecl( const std::string &name );
    228228        AggregateDecl( const AggregateDecl &other );
    229229        virtual ~AggregateDecl();
     
    231231        std::list<Declaration*>& get_members() { return members; }
    232232        std::list<TypeDecl*>& get_parameters() { return parameters; }
    233 
    234         std::list< Attribute * >& get_attributes() { return attributes; }
    235         const std::list< Attribute * >& get_attributes() const { return attributes; }
    236233
    237234        bool has_body() const { return body; }
     
    247244        std::list<TypeDecl*> parameters;
    248245        bool body;
    249         std::list< Attribute * > attributes;
    250246};
    251247
     
    253249        typedef AggregateDecl Parent;
    254250  public:
    255         StructDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
     251        StructDecl( const std::string &name ) : Parent( name ) {}
    256252        StructDecl( const StructDecl &other ) : Parent( other ) {}
    257253
     
    266262        typedef AggregateDecl Parent;
    267263  public:
    268         UnionDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
     264        UnionDecl( const std::string &name ) : Parent( name ) {}
    269265        UnionDecl( const UnionDecl &other ) : Parent( other ) {}
    270266
     
    279275        typedef AggregateDecl Parent;
    280276  public:
    281         EnumDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
     277        EnumDecl( const std::string &name ) : Parent( name ) {}
    282278        EnumDecl( const EnumDecl &other ) : Parent( other ) {}
    283279
     
    292288        typedef AggregateDecl Parent;
    293289  public:
    294         TraitDecl( const std::string &name, const std::list< Attribute * > & attributes ) : Parent( name ) {
    295                 assertf( attributes.empty(), "attribute unsupported for traits" );
    296         }
     290        TraitDecl( const std::string &name ) : Parent( name ) {}
    297291        TraitDecl( const TraitDecl &other ) : Parent( other ) {}
    298292
Note: See TracChangeset for help on using the changeset viewer.