Changes in src/SynTree/Declaration.h [a7c90d4:ddfd945]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
ra7c90d4 rddfd945 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Mar 7 07:40:42201713 // Update Count : 11 312 // Last Modified On : Thu Mar 16 08:34:11 2017 13 // Update Count : 118 14 14 // 15 15 … … 28 28 class Declaration : public BaseSyntaxNode { 29 29 public: 30 Declaration( const std::string &name, DeclarationNode::StorageClasses scs, LinkageSpec::Spec linkage );30 Declaration( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage ); 31 31 Declaration( const Declaration &other ); 32 32 virtual ~Declaration(); … … 35 35 void set_name( std::string newValue ) { name = newValue; } 36 36 37 DeclarationNode::StorageClasses get_storageClasses() const { return storageClasses; }37 Type::StorageClasses get_storageClasses() const { return storageClasses; } 38 38 39 39 LinkageSpec::Spec get_linkage() const { return linkage; } … … 56 56 private: 57 57 std::string name; 58 DeclarationNode::StorageClasses storageClasses;58 Type::StorageClasses storageClasses; 59 59 LinkageSpec::Spec linkage; 60 60 UniqueId uniqueId; … … 64 64 class DeclarationWithType : public Declaration { 65 65 public: 66 DeclarationWithType( const std::string &name, DeclarationNode::StorageClasses scs, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes, DeclarationNode::FuncSpecifiers fs );66 DeclarationWithType( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes, Type::FuncSpecifiers fs ); 67 67 DeclarationWithType( const DeclarationWithType &other ); 68 68 virtual ~DeclarationWithType(); … … 82 82 const std::list< Attribute * >& get_attributes() const { return attributes; } 83 83 84 DeclarationNode::FuncSpecifiers get_funcSpec() const { return fs; }85 //void set_functionSpecifiers( DeclarationNode::FuncSpecifiers newValue ) { fs = newValue; }84 Type::FuncSpecifiers get_funcSpec() const { return fs; } 85 //void set_functionSpecifiers( Type::FuncSpecifiers newValue ) { fs = newValue; } 86 86 87 87 virtual DeclarationWithType *clone() const = 0; … … 98 98 ConstantExpr *asmName; 99 99 std::list< Attribute * > attributes; 100 DeclarationNode::FuncSpecifiers fs;100 Type::FuncSpecifiers fs; 101 101 }; 102 102 … … 104 104 typedef DeclarationWithType Parent; 105 105 public: 106 ObjectDecl( const std::string &name, DeclarationNode::StorageClasses scs, LinkageSpec::Spec linkage, Expression *bitfieldWidth, Type *type, Initializer *init,107 const std::list< Attribute * > attributes = std::list< Attribute * >(), DeclarationNode::FuncSpecifiers fs = DeclarationNode::FuncSpecifiers() );106 ObjectDecl( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage, Expression *bitfieldWidth, Type *type, Initializer *init, 107 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() ); 108 108 ObjectDecl( const ObjectDecl &other ); 109 109 virtual ~ObjectDecl(); … … 132 132 typedef DeclarationWithType Parent; 133 133 public: 134 FunctionDecl( const std::string &name, DeclarationNode::StorageClasses scs, LinkageSpec::Spec linkage, FunctionType *type, CompoundStmt *statements,135 const std::list< Attribute * > attributes = std::list< Attribute * >(), DeclarationNode::FuncSpecifiers fs = DeclarationNode::FuncSpecifiers() );134 FunctionDecl( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage, FunctionType *type, CompoundStmt *statements, 135 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() ); 136 136 FunctionDecl( const FunctionDecl &other ); 137 137 virtual ~FunctionDecl(); … … 158 158 typedef Declaration Parent; 159 159 public: 160 NamedTypeDecl( const std::string &name, DeclarationNode::StorageClasses scs, Type *type );160 NamedTypeDecl( const std::string &name, Type::StorageClasses scs, Type *type ); 161 161 NamedTypeDecl( const NamedTypeDecl &other ); 162 162 virtual ~NamedTypeDecl(); … … 193 193 }; 194 194 195 TypeDecl( const std::string &name, DeclarationNode::StorageClasses scs, Type *type, Kind kind );195 TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind ); 196 196 TypeDecl( const TypeDecl &other ); 197 197 … … 214 214 typedef NamedTypeDecl Parent; 215 215 public: 216 TypedefDecl( const std::string &name, DeclarationNode::StorageClasses scs, Type *type ) : Parent( name, scs, type ) {}216 TypedefDecl( const std::string &name, Type::StorageClasses scs, Type *type ) : Parent( name, scs, type ) {} 217 217 TypedefDecl( const TypedefDecl &other ) : Parent( other ) {} 218 218
Note:
See TracChangeset
for help on using the changeset viewer.