Changeset 6943a987 for src/SynTree/Statement.cc
- Timestamp:
- Aug 29, 2016, 10:33:05 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 5e644d3e
- Parents:
- 79841be (diff), 413ad05 (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
-
src/SynTree/Statement.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r79841be r6943a987 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 4 11:25:20201613 // Update Count : 6 112 // Last Modified On : Fri Aug 12 13:58:48 2016 13 // Update Count : 62 14 14 // 15 15 … … 124 124 Statement( other ), condition( maybeClone( other.condition ) ), thenPart( maybeClone( other.thenPart ) ), elsePart( maybeClone( other.elsePart ) ) {} 125 125 126 IfStmt::~IfStmt() {} 126 IfStmt::~IfStmt() { 127 delete condition; 128 delete thenPart; 129 delete elsePart; 130 } 127 131 128 132 void IfStmt::print( std::ostream &os, int indent ) const { … … 155 159 delete condition; 156 160 // destroy statements 161 deleteAll( statements ); 157 162 } 158 163 … … 183 188 CaseStmt::~CaseStmt() { 184 189 delete condition; 190 deleteAll( stmts ); 185 191 } 186 192 … … 216 222 WhileStmt::~WhileStmt() { 217 223 delete body; 224 delete condition; 218 225 } 219 226 … … 290 297 TryStmt::~TryStmt() { 291 298 delete block; 299 deleteAll( handlers ); 300 delete finallyBlock; 292 301 } 293 302 … … 309 318 } 310 319 311 CatchStmt::CatchStmt( std::list<Label> labels, Declaration *_decl, Statement *_body, bool isCatchRest) :312 Statement( labels ), decl ( _decl ), body( _body ), catchRest ( isCatchRest) {320 CatchStmt::CatchStmt( std::list<Label> labels, Declaration *_decl, Statement *_body, bool catchAny ) : 321 Statement( labels ), decl ( _decl ), body( _body ), catchRest ( catchAny ) { 313 322 } 314 323
Note:
See TracChangeset
for help on using the changeset viewer.