Changes in src/SynTree/Declaration.h [4e24610:4040425]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r4e24610 r4040425 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Declaration.h -- 7 // Declaration.h -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Fri May 06 11:16:45201611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 17:28:11 2016 13 13 // Update Count : 33 14 14 // … … 106 106 typedef DeclarationWithType Parent; 107 107 public: 108 // temporary - merge this into general GCC attributes 109 enum Attribute { 110 NoAttribute, Constructor, Destructor, 111 }; 112 113 FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn, Attribute attribute = NoAttribute ); 108 FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn ); 114 109 FunctionDecl( const FunctionDecl &other ); 115 110 virtual ~FunctionDecl(); … … 124 119 std::list< std::string >& get_oldIdents() { return oldIdents; } 125 120 std::list< Declaration* >& get_oldDecls() { return oldDecls; } 126 Attribute get_attribute() const { return attribute; }127 void set_attribute( Attribute newValue ) { attribute = newValue; }128 121 129 122 virtual FunctionDecl *clone() const { return new FunctionDecl( *this ); } … … 137 130 std::list< std::string > oldIdents; 138 131 std::list< Declaration* > oldDecls; 139 Attribute attribute;140 132 }; 141 133
Note:
See TracChangeset
for help on using the changeset viewer.