Changeset 80722d0 for src/SynTree
- Timestamp:
- Aug 20, 2016, 7:06:26 PM (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, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ab57786, d30790f
- Parents:
- e6955b1 (diff), 4a7d895 (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. - Location:
- src/SynTree
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
re6955b1 r80722d0 383 383 Expression( _aname ), function(_function), args(_args) {} 384 384 385 UntypedExpr::~UntypedExpr() {} 385 UntypedExpr::~UntypedExpr() { 386 delete function; 387 } 386 388 387 389 void UntypedExpr::print( std::ostream &os, int indent ) const { -
src/SynTree/FunctionDecl.cc
re6955b1 r80722d0 39 39 delete type; 40 40 delete statements; 41 deleteAll( oldDecls ); 41 42 } 42 43 -
src/SynTree/Statement.cc
re6955b1 r80722d0 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
Note:
See TracChangeset
for help on using the changeset viewer.