Changeset 4ffdd63 for src/SynTree
- Timestamp:
- Apr 27, 2016, 5:16:22 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, with_gc
- Children:
- 21ae786
- Parents:
- c2ce2350
- Location:
- src/SynTree
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
rc2ce2350 r4ffdd63 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Apr 26 12:58:05201612 // Last Modified On : Wed Apr 27 17:07:19 2016 13 13 // Update Count : 40 14 14 // … … 473 473 474 474 ImplicitCopyCtorExpr::ImplicitCopyCtorExpr( const ImplicitCopyCtorExpr & other ) : Expression( other ), callExpr( maybeClone( other.callExpr ) ) { 475 cloneAll( other.copyCtors, copyCtors );476 475 cloneAll( other.tempDecls, tempDecls ); 477 476 cloneAll( other.returnDecls, returnDecls ); … … 481 480 ImplicitCopyCtorExpr::~ImplicitCopyCtorExpr() { 482 481 delete callExpr; 483 deleteAll( copyCtors );484 482 deleteAll( tempDecls ); 485 483 deleteAll( returnDecls ); … … 493 491 os << std::endl << std::string( indent, ' ' ) << "with temporaries:" << std::endl; 494 492 printAll(tempDecls, os, indent+2); 495 os << std::endl << std::string( indent, ' ' ) << "with copyCtors:" << std::endl;496 printAll(copyCtors, os, indent+2);497 493 os << std::endl << std::string( indent, ' ' ) << "with return temporaries:" << std::endl; 498 494 printAll(returnDecls, os, indent+2); -
src/SynTree/Expression.h
rc2ce2350 r4ffdd63 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Apr 14 15:40:56201612 // Last Modified On : Wed Apr 27 17:06:49 2016 13 13 // Update Count : 21 14 14 // … … 571 571 void set_callExpr( ApplicationExpr *newValue ) { callExpr = newValue; } 572 572 573 std::list< Expression * > & get_copyCtors() { return copyCtors; }574 void set_copyCtors( std::list< Expression * > newValue ) { copyCtors = newValue; }575 576 573 std::list< ObjectDecl * > & get_tempDecls() { return tempDecls; } 577 574 void set_tempDecls( std::list< ObjectDecl * > newValue ) { tempDecls = newValue; } … … 589 586 private: 590 587 ApplicationExpr * callExpr; 591 std::list< Expression * > copyCtors;592 588 std::list< ObjectDecl * > tempDecls; 593 589 std::list< ObjectDecl * > returnDecls; -
src/SynTree/Mutator.cc
rc2ce2350 r4ffdd63 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Apr 18 17:29:55201612 // Last Modified On : Wed Apr 27 17:07:29 2016 13 13 // Update Count : 16 14 14 // … … 339 339 Expression* Mutator::mutate( ImplicitCopyCtorExpr *impCpCtorExpr ) { 340 340 impCpCtorExpr->set_callExpr( maybeMutate( impCpCtorExpr->get_callExpr(), *this ) ); 341 mutateAll( impCpCtorExpr->get_copyCtors(), *this );342 341 mutateAll( impCpCtorExpr->get_tempDecls(), *this ); 343 342 mutateAll( impCpCtorExpr->get_returnDecls(), *this ); -
src/SynTree/Visitor.cc
rc2ce2350 r4ffdd63 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Apr 18 17:30:10 201612 // Last Modified On : Wed Apr 27 17:07:40 2016 13 13 // Update Count : 18 14 14 // … … 286 286 void Visitor::visit( ImplicitCopyCtorExpr *impCpCtorExpr ) { 287 287 maybeAccept( impCpCtorExpr->get_callExpr(), *this ); 288 acceptAll( impCpCtorExpr->get_copyCtors(), *this );289 288 acceptAll( impCpCtorExpr->get_tempDecls(), *this ); 290 289 acceptAll( impCpCtorExpr->get_returnDecls(), *this );
Note: See TracChangeset
for help on using the changeset viewer.