Changes in src/SynTree/Declaration.h [3a5131ed:dd020c0]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r3a5131ed rdd020c0 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 14:53:35201713 // Update Count : 5712 // Last Modified On : Fri Mar 3 20:59:27 2017 13 // Update Count : 96 14 14 // 15 15 … … 38 38 LinkageSpec::Spec get_linkage() const { return linkage; } 39 39 void set_linkage( LinkageSpec::Spec newValue ) { linkage = newValue; } 40 bool get_isInline() const { return isInline; }41 void set_isInline( bool newValue ) { isInline = newValue; }42 bool get_isNoreturn() const { return isNoreturn; }43 void set_isNoreturn( bool newValue ) { isNoreturn = newValue; }44 40 UniqueId get_uniqueId() const { return uniqueId; } 45 41 bool get_extension() const { return extension; } … … 59 55 DeclarationNode::StorageClass storageClass; 60 56 LinkageSpec::Spec linkage; 61 bool isInline, isNoreturn;62 57 UniqueId uniqueId; 63 58 bool extension = false; … … 66 61 class DeclarationWithType : public Declaration { 67 62 public: 68 DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes );63 DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes, DeclarationNode::FuncSpec fs = DeclarationNode::FuncSpec() ); 69 64 DeclarationWithType( const DeclarationWithType &other ); 70 65 virtual ~DeclarationWithType(); … … 83 78 std::list< Attribute * >& get_attributes() { return attributes; } 84 79 const std::list< Attribute * >& get_attributes() const { return attributes; } 80 81 DeclarationNode::FuncSpec get_funcSpec() const { return fs; } 82 void set_functionSpecifiers( DeclarationNode::FuncSpec newValue ) { fs = newValue; } 85 83 86 84 virtual DeclarationWithType *clone() const = 0; … … 97 95 ConstantExpr *asmName; 98 96 std::list< Attribute * > attributes; 97 DeclarationNode::FuncSpec fs; 99 98 }; 100 99 … … 102 101 typedef DeclarationWithType Parent; 103 102 public: 104 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 ); 103 ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, Expression *bitfieldWidth, Type *type, Initializer *init, 104 const std::list< Attribute * > attributes = std::list< Attribute * >(), DeclarationNode::FuncSpec fs = DeclarationNode::FuncSpec() ); 105 105 ObjectDecl( const ObjectDecl &other ); 106 106 virtual ~ObjectDecl(); … … 129 129 typedef DeclarationWithType Parent; 130 130 public: 131 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 * >() ); 131 FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, FunctionType *type, CompoundStmt *statements, 132 const std::list< Attribute * > attributes = std::list< Attribute * >(), DeclarationNode::FuncSpec fs = DeclarationNode::FuncSpec() ); 132 133 FunctionDecl( const FunctionDecl &other ); 133 134 virtual ~FunctionDecl();
Note:
See TracChangeset
for help on using the changeset viewer.