Ignore:
Timestamp:
Nov 22, 2022, 10:18:04 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r1553a55 r29702ad  
    340340        bool isTyped;
    341341        Type * base;
     342        enum EnumHiding { Visible, Hide } hide;
    342343
    343344        EnumDecl( const std::string & name,
     
    345346          bool isTyped = false, LinkageSpec::Spec linkage = LinkageSpec::Cforall,
    346347          Type * baseType = nullptr )
    347           : Parent( name, attributes, linkage ),isTyped(isTyped), base( baseType ) {}
     348          : Parent( name, attributes, linkage ), isTyped(isTyped), base( baseType ) {}
    348349        EnumDecl( const EnumDecl & other )
    349350          : Parent( other ), isTyped( other.isTyped), base( other.base ) {}
     
    450451
    451452
    452 class InlineValueDecl : public DeclarationWithType {
     453class InlineMemberDecl : public DeclarationWithType {
    453454        typedef DeclarationWithType Parent;
    454455  public:
    455456        Type * type;
    456457
    457         InlineValueDecl( 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,
    458459                                const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() );
    459         InlineValueDecl( const InlineValueDecl & other );
    460         virtual ~InlineValueDecl();
     460        InlineMemberDecl( const InlineMemberDecl & other );
     461        virtual ~InlineMemberDecl();
    461462
    462463        virtual Type * get_type() const override { return type; }
    463464        virtual void set_type(Type * newType) override { type = newType; }
    464465
    465         static InlineValueDecl * newInlineValueDecl( const std::string & name, Type * type );
    466 
    467         virtual InlineValueDecl * 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 ); }
    468469        virtual void accept( Visitor & v ) override { v.visit( this ); }
    469470        virtual void accept( Visitor & v ) const override { v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.