Changes in src/SynTree/FunctionDecl.cc [f9cebb5:7baed7d]
- File:
-
- 1 edited
-
src/SynTree/FunctionDecl.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/FunctionDecl.cc
rf9cebb5 r7baed7d 23 23 24 24 FunctionDecl::FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn, std::list< Attribute * > attributes ) 25 : Parent( name, sc, linkage , attributes ), type( type ), statements( statements ) {25 : Parent( name, sc, linkage ), type( type ), statements( statements ), attributes( attributes ) { 26 26 set_isInline( isInline ); 27 27 set_isNoreturn( isNoreturn ); … … 34 34 FunctionDecl::FunctionDecl( const FunctionDecl &other ) 35 35 : Parent( other ), type( maybeClone( other.type ) ), statements( maybeClone( other.statements ) ) { 36 cloneAll( other.attributes, attributes ); 36 37 } 37 38 … … 39 40 delete type; 40 41 delete statements; 42 deleteAll( attributes ); 41 43 } 42 44 … … 67 69 } // if 68 70 69 printAll( get_attributes(), os, indent );71 printAll( attributes, os, indent ); 70 72 71 73 if ( get_storageClass() != DeclarationNode::NoStorageClass ) {
Note:
See TracChangeset
for help on using the changeset viewer.