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