Changes in src/SynTree/Declaration.h [f9cebb5:5d125e4]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rf9cebb5 r5d125e4 64 64 class DeclarationWithType : public Declaration { 65 65 public: 66 DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage , const std::list< Attribute * > & attributes);66 DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage ); 67 67 DeclarationWithType( const DeclarationWithType &other ); 68 68 virtual ~DeclarationWithType(); … … 75 75 int get_scopeLevel() const { return scopeLevel; } 76 76 void set_scopeLevel( int newValue ) { scopeLevel = newValue; } 77 78 std::list< Attribute * >& get_attributes() { return attributes; }79 const std::list< Attribute * >& get_attributes() const { return attributes; }80 77 81 78 virtual DeclarationWithType *clone() const = 0; … … 90 87 // shadowed identifiers can be accessed 91 88 int scopeLevel = 0; 92 93 std::list< Attribute * > attributes;94 89 }; 95 90 … … 97 92 typedef DeclarationWithType Parent; 98 93 public: 99 ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init, const std::list< Attribute * > attributes = std::list< Attribute * >(),bool isInline = false, bool isNoreturn = false );94 ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init, bool isInline = false, bool isNoreturn = false ); 100 95 ObjectDecl( const ObjectDecl &other ); 101 96 virtual ~ObjectDecl(); … … 136 131 std::list< std::string >& get_oldIdents() { return oldIdents; } 137 132 std::list< Declaration* >& get_oldDecls() { return oldDecls; } 133 std::list< Attribute * >& get_attributes() { return attributes; } 138 134 139 135 virtual FunctionDecl *clone() const { return new FunctionDecl( *this ); } … … 147 143 std::list< std::string > oldIdents; 148 144 std::list< Declaration* > oldDecls; 145 std::list< Attribute * > attributes; 149 146 }; 150 147
Note:
See TracChangeset
for help on using the changeset viewer.