Changes in src/SynTree/Declaration.h [4559b34:0c730d9]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r4559b34 r0c730d9 144 144 virtual void print( std::ostream & os, Indenter indent = {} ) const override; 145 145 virtual void printShort( std::ostream & os, Indenter indent = {} ) const override; 146 147 // TODO: Move to the right place148 void checkAssignedValue() const;149 146 }; 150 147 … … 290 287 AggregateDecl * set_body( bool body ) { AggregateDecl::body = body; return this; } 291 288 292 virtual void print( std::ostream & os, Indenter indent = {} ) const override ;289 virtual void print( std::ostream & os, Indenter indent = {} ) const override final; 293 290 virtual void printShort( std::ostream & os, Indenter indent = {} ) const override; 294 291 protected: … … 338 335 typedef AggregateDecl Parent; 339 336 public: 340 EnumDecl( const std::string & name, 341 const std::list< Attribute * > & attributes = std::list< class Attribute * >(), 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 ) {} 337 EnumDecl( const std::string & name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ) {} 338 EnumDecl( const EnumDecl & other ) : Parent( other ) {} 345 339 346 340 bool valueOf( Declaration * enumerator, long long int & value ); … … 350 344 virtual void accept( Visitor & v ) const override { v.visit( this ); } 351 345 virtual Declaration * acceptMutator( Mutator & m ) override { return m.mutate( this ); } 352 Type * base; 346 private: 353 347 std::unordered_map< std::string, long long int > enumValues; 354 virtual void print( std::ostream & os, Indenter indent = {} ) const override final;355 private:356 // std::unordered_map< std::string, long long int > enumValues;357 348 virtual const char * typeString() const override; 358 349 };
Note:
See TracChangeset
for help on using the changeset viewer.