Changes in src/SynTree/Declaration.h [f9cebb5:8b7ee09]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rf9cebb5 r8b7ee09 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 Jul 12 21:03:17201613 // Update Count : 3912 // Last Modified On : Thu Aug 18 23:50:24 2016 13 // Update Count : 40 14 14 // 15 15 … … 26 26 class Declaration { 27 27 public: 28 Declaration( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec:: Typelinkage );28 Declaration( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage ); 29 29 Declaration( const Declaration &other ); 30 30 virtual ~Declaration(); … … 34 34 DeclarationNode::StorageClass get_storageClass() const { return storageClass; } 35 35 void set_storageClass( DeclarationNode::StorageClass newValue ) { storageClass = newValue; } 36 LinkageSpec:: Typeget_linkage() const { return linkage; }37 void set_linkage( LinkageSpec:: TypenewValue ) { linkage = newValue; }36 LinkageSpec::Spec get_linkage() const { return linkage; } 37 void set_linkage( LinkageSpec::Spec newValue ) { linkage = newValue; } 38 38 bool get_isInline() const { return isInline; } 39 39 void set_isInline( bool newValue ) { isInline = newValue; } … … 56 56 std::string name; 57 57 DeclarationNode::StorageClass storageClass; 58 LinkageSpec:: Typelinkage;58 LinkageSpec::Spec linkage; 59 59 bool isInline, isNoreturn; 60 60 UniqueId uniqueId; … … 64 64 class DeclarationWithType : public Declaration { 65 65 public: 66 DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec:: Typelinkage, const std::list< Attribute * > & attributes );66 DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes ); 67 67 DeclarationWithType( const DeclarationWithType &other ); 68 68 virtual ~DeclarationWithType(); … … 97 97 typedef DeclarationWithType Parent; 98 98 public: 99 ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec:: Typelinkage, Expression *bitfieldWidth, Type *type, Initializer *init, const std::list< Attribute * > attributes = std::list< Attribute * >(), bool isInline = false, bool isNoreturn = false );99 ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, Expression *bitfieldWidth, Type *type, Initializer *init, const std::list< Attribute * > attributes = std::list< Attribute * >(), bool isInline = false, bool isNoreturn = false ); 100 100 ObjectDecl( const ObjectDecl &other ); 101 101 virtual ~ObjectDecl(); … … 123 123 typedef DeclarationWithType Parent; 124 124 public: 125 FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec:: Typelinkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn, const std::list< Attribute * > attributes = std::list< Attribute * >() );125 FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn, const std::list< Attribute * > attributes = std::list< Attribute * >() ); 126 126 FunctionDecl( const FunctionDecl &other ); 127 127 virtual ~FunctionDecl();
Note:
See TracChangeset
for help on using the changeset viewer.