Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    rb0d9ff7 r4559b34  
    145145        virtual void printShort( std::ostream & os, Indenter indent = {} ) const override;
    146146
     147        // TODO: Move to the right place
    147148        void checkAssignedValue() const;
    148149};
     
    337338        typedef AggregateDecl Parent;
    338339  public:
    339         bool isTyped;
    340         Type * base;
    341 
    342340        EnumDecl( const std::string & name,
    343341         const std::list< Attribute * > & attributes = std::list< class Attribute * >(),
    344           bool isTyped = false, LinkageSpec::Spec linkage = LinkageSpec::Cforall,
    345           Type * baseType = nullptr )
    346           : Parent( name, attributes, linkage ),isTyped(isTyped), base( baseType ) {}
    347         EnumDecl( const EnumDecl & other )
    348           : Parent( other ), isTyped( other.isTyped), base( other.base ) {}
     342          LinkageSpec::Spec linkage = LinkageSpec::Cforall,
     343          Type * baseType = nullptr ) : Parent( name, attributes, linkage ) , base( baseType ){}
     344        EnumDecl( const EnumDecl & other ) : Parent( other ), base( other.base ) {}
     345
    349346        bool valueOf( Declaration * enumerator, long long int & value );
     347
    350348        virtual EnumDecl * clone() const override { return new EnumDecl( *this ); }
    351349        virtual void accept( Visitor & v ) override { v.visit( this ); }
    352350        virtual void accept( Visitor & v ) const override { v.visit( this ); }
    353351        virtual Declaration * acceptMutator( Mutator & m )  override { return m.mutate( this ); }
    354 
    355         std::unordered_map< std::string, long long int > enumValues; // This attribute is unused
     352        Type * base;
     353        std::unordered_map< std::string, long long int > enumValues;
    356354        virtual void print( std::ostream & os, Indenter indent = {} ) const override final;
    357355  private:
Note: See TracChangeset for help on using the changeset viewer.