Changes in src/SynTree/Declaration.h [8b7ee09:f9cebb5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r8b7ee09 rf9cebb5 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Aug 18 23:50:24201613 // Update Count : 4012 // Last Modified On : Tue Jul 12 21:03:17 2016 13 // Update Count : 39 14 14 // 15 15 … … 26 26 class Declaration { 27 27 public: 28 Declaration( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec:: Speclinkage );28 Declaration( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type 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:: Specget_linkage() const { return linkage; }37 void set_linkage( LinkageSpec:: SpecnewValue ) { linkage = newValue; }36 LinkageSpec::Type get_linkage() const { return linkage; } 37 void set_linkage( LinkageSpec::Type 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:: Speclinkage;58 LinkageSpec::Type 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:: Speclinkage, const std::list< Attribute * > & attributes );66 DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type 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:: Speclinkage, 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::Type 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:: Speclinkage, 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::Type 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.