Changes in src/SynTree/Declaration.h [e874605:e4d7c1c]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
re874605 re4d7c1c 340 340 bool isTyped; 341 341 Type * base; 342 enum EnumHiding { Visible, Hide } hide; 342 343 343 344 EnumDecl( const std::string & name, … … 345 346 bool isTyped = false, LinkageSpec::Spec linkage = LinkageSpec::Cforall, 346 347 Type * baseType = nullptr ) 347 : Parent( name, attributes, linkage ), isTyped(isTyped), base( baseType ) {}348 : Parent( name, attributes, linkage ), isTyped(isTyped), base( baseType ) {} 348 349 EnumDecl( const EnumDecl & other ) 349 350 : Parent( other ), isTyped( other.isTyped), base( other.base ) {} … … 450 451 451 452 452 class Inline ValueDecl : public DeclarationWithType {453 class InlineMemberDecl : public DeclarationWithType { 453 454 typedef DeclarationWithType Parent; 454 455 public: 455 456 Type * type; 456 457 457 Inline ValueDecl( const std::string & name, Type::StorageClasses scs, LinkageSpec::Spec linkage, Type * type,458 InlineMemberDecl( const std::string & name, Type::StorageClasses scs, LinkageSpec::Spec linkage, Type * type, 458 459 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() ); 459 Inline ValueDecl( const InlineValueDecl & other );460 virtual ~Inline ValueDecl();460 InlineMemberDecl( const InlineMemberDecl & other ); 461 virtual ~InlineMemberDecl(); 461 462 462 463 virtual Type * get_type() const override { return type; } 463 464 virtual void set_type(Type * newType) override { type = newType; } 464 465 465 static Inline ValueDecl * newInlineValueDecl( const std::string & name, Type * type );466 467 virtual Inline ValueDecl * clone() const override { return new InlineValueDecl( *this ); }466 static InlineMemberDecl * newInlineMemberDecl( const std::string & name, Type * type ); 467 468 virtual InlineMemberDecl * clone() const override { return new InlineMemberDecl( *this ); } 468 469 virtual void accept( Visitor & v ) override { v.visit( this ); } 469 470 virtual void accept( Visitor & v ) const override { v.visit( this ); }
Note:
See TracChangeset
for help on using the changeset viewer.