Changeset 29702ad for src/SynTree/Declaration.h
- Timestamp:
- Nov 22, 2022, 10:18:04 AM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 20cf96d
- Parents:
- 1553a55 (diff), d41735a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r1553a55 r29702ad 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.