Changeset 4eb43fa for src/AST/Copy.hpp
- Timestamp:
- Jul 22, 2019, 4:23:33 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 96ac72c
- Parents:
- f53acdf8 (diff), f6cc734e (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
-
src/AST/Copy.hpp
rf53acdf8 r4eb43fa 23 23 24 24 template<typename node_t> 25 const node_t * shallowCopy( const node_t * node ) { 25 node_t * shallowCopy( const node_t * node ); 26 26 /* Create a shallow copy of the node given. 27 27 * … … 31 31 32 32 template<typename node_t> 33 node_t * deepCopy( node_t const * localRoot );33 node_t * deepCopy( const node_t * localRoot ); 34 34 /* Create a deep copy of the tree rooted at localRoot. 35 35 * … … 106 106 107 107 template<typename node_t> 108 node_t * shallowCopy( node_t const * localRoot ) {108 node_t * shallowCopy( const node_t * localRoot ) { 109 109 return localRoot->clone(); 110 110 } 111 111 112 112 template<typename node_t> 113 node_t * deepCopy( node_t const * localRoot ) {113 node_t * deepCopy( const node_t * localRoot ) { 114 114 Pass< DeepCopyCore > dc; 115 115 node_t const * newRoot = localRoot->accept( dc );
Note: See TracChangeset
for help on using the changeset viewer.