Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r6ea87486 r67cf18c  
    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 : Fri Jul 14 16:59:00 2017
    13 // Update Count     : 123
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Fri Mar 17 16:05:08 2017
     13// Update Count     : 121
    1414//
    1515
     
    238238        typedef Declaration Parent;
    239239  public:
    240         AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall );
     240        AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() );
    241241        AggregateDecl( const AggregateDecl &other );
    242242        virtual ~AggregateDecl();
     
    266266        typedef AggregateDecl Parent;
    267267  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 ), tagged( false ), parent_name( "" ) {}
    269         StructDecl( const std::string &name, const std::string *parent, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( DeclarationNode::Struct ), tagged( true ), parent_name( parent ? *parent : "" ) {}
     268        StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ), kind( kind ) {}
    270269        StructDecl( const StructDecl &other ) : Parent( other ) {}
    271270
     
    274273        bool is_thread() { return kind == DeclarationNode::Thread; }
    275274
    276         // Tagged/Tree Structure Excetion
    277         bool get_tagged() { return tagged; }
    278         void set_tagged( bool newValue ) { tagged = newValue; }
    279         bool has_parent() { return parent_name != ""; }
    280         std::string get_parentName() { return parent_name; }
    281 
    282275        virtual StructDecl *clone() const { return new StructDecl( *this ); }
    283276        virtual void accept( Visitor &v ) { v.visit( this ); }
     
    286279        DeclarationNode::Aggregate kind;
    287280        virtual std::string typeString() const;
    288 
    289         bool tagged;
    290         std::string parent_name;
    291281};
    292282
     
    294284        typedef AggregateDecl Parent;
    295285  public:
    296         UnionDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ) {}
     286        UnionDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
    297287        UnionDecl( const UnionDecl &other ) : Parent( other ) {}
    298288
     
    307297        typedef AggregateDecl Parent;
    308298  public:
    309         EnumDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ) {}
     299        EnumDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
    310300        EnumDecl( const EnumDecl &other ) : Parent( other ) {}
    311301
Note: See TracChangeset for help on using the changeset viewer.