Changes in src/SynTree/AggregateDecl.cc [c0aa336:4a9ccc3]
- File:
-
- 1 edited
-
src/SynTree/AggregateDecl.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/AggregateDecl.cc
rc0aa336 r4a9ccc3 10 10 // Created On : Sun May 17 23:56:39 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Feb 6 15:31:23 201713 // Update Count : 1 712 // Last Modified On : Wed Jul 13 18:03:30 2016 13 // Update Count : 10 14 14 // 15 15 16 16 #include "Declaration.h" 17 #include "Attribute.h"18 17 #include "Type.h" 19 18 #include "Common/utility.h" 20 19 21 20 22 AggregateDecl::AggregateDecl( const std::string &name , const std::list< Attribute * > & attributes ) : Parent( name, DeclarationNode::NoStorageClass, LinkageSpec::Cforall ), body( false ), attributes( attributes) {21 AggregateDecl::AggregateDecl( const std::string &name ) : Parent( name, DeclarationNode::NoStorageClass, LinkageSpec::Cforall ), body( false ) { 23 22 } 24 23 … … 26 25 cloneAll( other.members, members ); 27 26 cloneAll( other.parameters, parameters ); 28 cloneAll( other.attributes, attributes );29 27 body = other.body; 30 28 } 31 29 32 30 AggregateDecl::~AggregateDecl() { 33 deleteAll( attributes );31 deleteAll( members ); 34 32 deleteAll( parameters ); 35 deleteAll( members );36 33 } 37 34 … … 50 47 os << endl << string( indent+2, ' ' ) << "with members" << endl; 51 48 printAll( members, os, indent+4 ); 52 } // if53 if ( ! attributes.empty() ) {54 os << endl << string( indent+2, ' ' ) << "with attributes" << endl;55 printAll( attributes, os, indent+4 );56 49 } // if 57 50 }
Note:
See TracChangeset
for help on using the changeset viewer.