- Timestamp:
- Jul 19, 2019, 2:44:13 PM (6 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:
- f6cc734e
- Parents:
- 1f1c102
- Location:
- src/AST
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/AST/Attribute.hpp ¶
r1f1c102 r99da267 51 51 template<typename node_t> 52 52 friend node_t * mutate(const node_t * node); 53 template<typename node_t> 54 friend node_t * shallowCopy(const node_t * node); 53 55 }; 54 56 -
TabularUnified src/AST/Copy.hpp ¶
r1f1c102 r99da267 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 ); -
TabularUnified src/AST/Decl.hpp ¶
r1f1c102 r99da267 32 32 33 33 // Must be included in *all* AST classes; should be #undef'd at the end of the file 34 #define MUTATE_FRIEND template<typename node_t> friend node_t * mutate(const node_t * node); 34 #define MUTATE_FRIEND \ 35 template<typename node_t> friend node_t * mutate(const node_t * node); \ 36 template<typename node_t> friend node_t * shallowCopy(const node_t * node); 35 37 36 38 namespace ast { -
TabularUnified src/AST/Expr.hpp ¶
r1f1c102 r99da267 30 30 31 31 // Must be included in *all* AST classes; should be #undef'd at the end of the file 32 #define MUTATE_FRIEND template<typename node_t> friend node_t * mutate(const node_t * node); 32 #define MUTATE_FRIEND \ 33 template<typename node_t> friend node_t * mutate(const node_t * node); \ 34 template<typename node_t> friend node_t * shallowCopy(const node_t * node); 35 33 36 34 37 class ConverterOldToNew; -
TabularUnified src/AST/Init.hpp ¶
r1f1c102 r99da267 25 25 26 26 // Must be included in *all* AST classes; should be #undef'd at the end of the file 27 #define MUTATE_FRIEND template<typename node_t> friend node_t * mutate(const node_t * node); 27 #define MUTATE_FRIEND \ 28 template<typename node_t> friend node_t * mutate(const node_t * node); \ 29 template<typename node_t> friend node_t * shallowCopy(const node_t * node); 28 30 29 31 namespace ast { -
TabularUnified src/AST/Node.hpp ¶
r1f1c102 r99da267 57 57 template<typename node_t> 58 58 friend node_t * mutate(const node_t * node); 59 template<typename node_t> 60 friend node_t * shallowCopy(const node_t * node); 59 61 60 62 mutable size_t strong_count = 0; -
TabularUnified src/AST/Stmt.hpp ¶
r1f1c102 r99da267 27 27 28 28 // Must be included in *all* AST classes; should be #undef'd at the end of the file 29 #define MUTATE_FRIEND template<typename node_t> friend node_t * mutate(const node_t * node); 29 #define MUTATE_FRIEND \ 30 template<typename node_t> friend node_t * mutate(const node_t * node); \ 31 template<typename node_t> friend node_t * shallowCopy(const node_t * node); 30 32 31 33 namespace ast { -
TabularUnified src/AST/Type.hpp ¶
r1f1c102 r99da267 30 30 31 31 // Must be included in *all* AST classes; should be #undef'd at the end of the file 32 #define MUTATE_FRIEND template<typename node_t> friend node_t * mutate(const node_t * node); 32 #define MUTATE_FRIEND \ 33 template<typename node_t> friend node_t * mutate(const node_t * node); \ 34 template<typename node_t> friend node_t * shallowCopy(const node_t * node); 33 35 34 36 namespace ast {
Note: See TracChangeset
for help on using the changeset viewer.