Changes in src/SynTree/Declaration.h [1db21619:de62360d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r1db21619 rde62360d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jul 13 18:15:59201513 // Update Count : 2 812 // Last Modified On : Sat Jun 13 09:10:31 2015 13 // Update Count : 25 14 14 // 15 15 … … 35 35 LinkageSpec::Type get_linkage() const { return linkage; } 36 36 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; }41 37 UniqueId get_uniqueId() const { return uniqueId; } 42 38 … … 54 50 DeclarationNode::StorageClass storageClass; 55 51 LinkageSpec::Type linkage; 56 bool isInline, isNoreturn;57 52 UniqueId uniqueId; 58 53 }; … … 80 75 typedef DeclarationWithType Parent; 81 76 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 ); 83 78 ObjectDecl( const ObjectDecl &other ); 84 79 virtual ~ObjectDecl(); … … 94 89 virtual ObjectDecl *clone() const { return new ObjectDecl( *this ); } 95 90 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 ); } 97 92 virtual void print( std::ostream &os, int indent = 0 ) const; 98 93 virtual void printShort( std::ostream &os, int indent = 0 ) const; … … 117 112 CompoundStmt *get_statements() const { return statements; } 118 113 void set_statements( CompoundStmt *newValue ) { statements = newValue; } 114 bool get_isInline() const { return isInline; } 115 bool get_isNoreturn() const { return isNoreturn; } 119 116 std::list< std::string >& get_oldIdents() { return oldIdents; } 120 117 std::list< Declaration* >& get_oldDecls() { return oldDecls; } … … 128 125 FunctionType *type; 129 126 CompoundStmt *statements; 127 bool isInline, isNoreturn; 130 128 std::list< std::string > oldIdents; 131 129 std::list< Declaration* > oldDecls;
Note:
See TracChangeset
for help on using the changeset viewer.