Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r1db21619 rde62360d  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 13 18:15:59 2015
    13 // Update Count     : 28
     12// Last Modified On : Sat Jun 13 09:10:31 2015
     13// Update Count     : 25
    1414//
    1515
     
    3535        LinkageSpec::Type get_linkage() const { return linkage; }
    3636        void set_linkage( LinkageSpec::Type newValue ) { linkage = newValue; }
    37         bool get_isInline() const { return isInline; }
    38         void set_isInline( bool newValue ) { isInline = newValue; }
    39         bool get_isNoreturn() const { return isNoreturn; }
    40         void set_isNoreturn( bool newValue ) { isNoreturn = newValue; }
    4137        UniqueId get_uniqueId() const { return uniqueId; }
    4238
     
    5450        DeclarationNode::StorageClass storageClass;
    5551        LinkageSpec::Type linkage;
    56         bool isInline, isNoreturn;
    5752        UniqueId uniqueId;
    5853};
     
    8075        typedef DeclarationWithType Parent;
    8176  public:
    82         ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init, bool isInline = false, bool isNoreturn = false );
     77        ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init );
    8378        ObjectDecl( const ObjectDecl &other );
    8479        virtual ~ObjectDecl();
     
    9489        virtual ObjectDecl *clone() const { return new ObjectDecl( *this ); }
    9590        virtual void accept( Visitor &v ) { v.visit( this ); }
    96         virtual DeclarationWithType *acceptMutator( Mutator &m ) { return m.mutate( this ); }
     91        virtual ObjectDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    9792        virtual void print( std::ostream &os, int indent = 0 ) const;
    9893        virtual void printShort( std::ostream &os, int indent = 0 ) const;
     
    117112        CompoundStmt *get_statements() const { return statements; }
    118113        void set_statements( CompoundStmt *newValue ) { statements = newValue; }
     114        bool get_isInline() const { return isInline; }
     115        bool get_isNoreturn() const { return isNoreturn; }
    119116        std::list< std::string >& get_oldIdents() { return oldIdents; }
    120117        std::list< Declaration* >& get_oldDecls() { return oldDecls; }
     
    128125        FunctionType *type;
    129126        CompoundStmt *statements;
     127        bool isInline, isNoreturn;
    130128        std::list< std::string > oldIdents;
    131129        std::list< Declaration* > oldDecls;
Note: See TracChangeset for help on using the changeset viewer.