Changes in src/SynTree/Declaration.h [b0d9ff7:4559b34]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rb0d9ff7 r4559b34 145 145 virtual void printShort( std::ostream & os, Indenter indent = {} ) const override; 146 146 147 // TODO: Move to the right place 147 148 void checkAssignedValue() const; 148 149 }; … … 337 338 typedef AggregateDecl Parent; 338 339 public: 339 bool isTyped;340 Type * base;341 342 340 EnumDecl( const std::string & name, 343 341 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 349 346 bool valueOf( Declaration * enumerator, long long int & value ); 347 350 348 virtual EnumDecl * clone() const override { return new EnumDecl( *this ); } 351 349 virtual void accept( Visitor & v ) override { v.visit( this ); } 352 350 virtual void accept( Visitor & v ) const override { v.visit( this ); } 353 351 virtual Declaration * acceptMutator( Mutator & m ) override { return m.mutate( this ); } 354 355 std::unordered_map< std::string, long long int > enumValues; // This attribute is unused352 Type * base; 353 std::unordered_map< std::string, long long int > enumValues; 356 354 virtual void print( std::ostream & os, Indenter indent = {} ) const override final; 357 355 private:
Note:
See TracChangeset
for help on using the changeset viewer.