Changes in src/SynTree/Declaration.h [e874605:1e30df7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
re874605 r1e30df7 449 449 }; 450 450 451 452 class InlineValueDecl : public DeclarationWithType {453 typedef DeclarationWithType Parent;454 public:455 Type * type;456 457 InlineValueDecl( const std::string & name, Type::StorageClasses scs, LinkageSpec::Spec linkage, Type * type,458 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() );459 InlineValueDecl( const InlineValueDecl & other );460 virtual ~InlineValueDecl();461 462 virtual Type * get_type() const override { return type; }463 virtual void set_type(Type * newType) override { type = newType; }464 465 static InlineValueDecl * newInlineValueDecl( const std::string & name, Type * type );466 467 virtual InlineValueDecl * clone() const override { return new InlineValueDecl( *this ); }468 virtual void accept( Visitor & v ) override { v.visit( this ); }469 virtual void accept( Visitor & v ) const override { v.visit( this ); }470 virtual DeclarationWithType * acceptMutator( Mutator & m ) override { return m.mutate( this ); }471 virtual void print( std::ostream & os, Indenter indent = {} ) const override;472 virtual void printShort( std::ostream & os, Indenter indent = {} ) const override;473 474 };475 476 451 std::ostream & operator<<( std::ostream & os, const TypeDecl::Data & data ); 477 452
Note: See TracChangeset
for help on using the changeset viewer.