Changeset 4bf5298 for translator/SynTree/CompoundStmt.cc
- Timestamp:
- May 14, 2015, 1:54:02 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 5c7fb6c
- Parents:
- c11e31c (diff), b1a6d6b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/SynTree/CompoundStmt.cc
rc11e31c r4bf5298 14 14 using std::endl; 15 15 16 CompoundStmt::CompoundStmt( std::list<Label> labels ) 17 : Statement( labels ) 18 { 16 CompoundStmt::CompoundStmt( std::list<Label> labels ) : Statement( labels ) { 19 17 } 20 18 21 CompoundStmt::CompoundStmt( const CompoundStmt &other ) 22 : Statement( other ) 23 { 19 CompoundStmt::CompoundStmt( const CompoundStmt &other ) : Statement( other ) { 24 20 cloneAll( other.kids, kids ); 25 21 } 26 22 27 CompoundStmt::~CompoundStmt() 28 { 23 CompoundStmt::~CompoundStmt() { 29 24 deleteAll( kids ); 30 25 } 31 26 32 void 33 CompoundStmt::print( std::ostream &os, int indent ) 34 { 35 os << "\r" << string(indent, ' ') << "CompoundStmt Statement" << endl ; 36 printAll( kids, os, indent + 4 ); 27 void CompoundStmt::print( std::ostream &os, int indent ) { 28 os << "\r" << string(indent, ' ') << "CompoundStmt" << endl ; 29 printAll( kids, os, indent+2 ); 37 30 } 38 31
Note: See TracChangeset
for help on using the changeset viewer.