Changes in src/AST/porting.md [d8938622:9b4f329]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/porting.md
rd8938622 r9b4f329 38 38 39 39 `N->print(std::ostream&)` is a visitor now, port these methods to `ast::Print` class 40 * **TODO** `Declaration::printShort` should also be integrated 40 * **TODO** write this visitor 41 * **TODO** write `std::ostream& operator<< ( std::ostream& out, const Node* node )` in `Node.hpp` in terms of `ast::Print` 42 * `Declaration::printShort` should also be integrated 41 43 42 44 `clone` is private to `Node` now … … 46 48 /// Must be copied in ALL derived classes 47 49 template<typename node_t> 48 friend node_t *mutate(const node_t * node);50 friend auto mutate(const node_t * node); 49 51 50 52 All leaves of the `Node` inheritance tree are now declared `final` … … 206 208 207 209 `CompoundStmt` 210 * **TODO** port copy operator 211 * Needs to be an almost-shallow clone, where the declarations are cloned only if needed 212 * **TODO** port `DeclReplacer` 208 213 * Still a `std::list` for children, rather than `std::vector` 209 214 * allows more-efficient splicing for purposes of later code generation … … 224 229 * `getAggr()` => `aggr()` 225 230 * also now returns `const AggregateDecl *` 226 * `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp` 231 * `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp` **TODO** write 227 232 228 233 `BasicType`
Note: See TracChangeset
for help on using the changeset viewer.