Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    rfa4805f rbdd0755  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Tus Jun 27 15:31:00 2017
    13 // Update Count     : 122
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Fri Mar 17 16:05:08 2017
     13// Update Count     : 121
    1414//
    1515
     
    194194        };
    195195
    196         TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind, Type * init = nullptr );
     196        TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind );
    197197        TypeDecl( const TypeDecl &other );
    198         virtual ~TypeDecl();
    199198
    200199        Kind get_kind() const { return kind; }
    201 
    202         Type * get_init() const { return init; }
    203         TypeDecl * set_init( Type * newValue ) { init = newValue; return this; }
    204200
    205201        bool isComplete() const { return kind == Any || sized; }
     
    213209        virtual void accept( Visitor &v ) { v.visit( this ); }
    214210        virtual TypeDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    215         virtual void print( std::ostream &os, int indent = 0 ) const;
    216 
    217211  private:
    218212        Kind kind;
    219         Type * init;
    220213        bool sized;
    221214};
     
    238231        typedef Declaration Parent;
    239232  public:
    240         AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall );
     233        AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() );
    241234        AggregateDecl( const AggregateDecl &other );
    242235        virtual ~AggregateDecl();
     
    266259        typedef AggregateDecl Parent;
    267260  public:
    268         StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( kind ) {}
     261        StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ), kind( kind ) {}
    269262        StructDecl( const StructDecl &other ) : Parent( other ) {}
    270263
     
    284277        typedef AggregateDecl Parent;
    285278  public:
    286         UnionDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ) {}
     279        UnionDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
    287280        UnionDecl( const UnionDecl &other ) : Parent( other ) {}
    288281
     
    297290        typedef AggregateDecl Parent;
    298291  public:
    299         EnumDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ) {}
     292        EnumDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
    300293        EnumDecl( const EnumDecl &other ) : Parent( other ) {}
    301294
Note: See TracChangeset for help on using the changeset viewer.