Changes in src/AST/porting.md [489bacf:9b4f329]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/porting.md
r489bacf 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` … … 110 112 111 113 ## Specific Nodes ## 112 `Attribute`113 * `parameters` => `params`114 115 114 `Decl` 116 115 * `storageClasses` => `storage` … … 209 208 210 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` 211 213 * Still a `std::list` for children, rather than `std::vector` 212 214 * allows more-efficient splicing for purposes of later code generation … … 227 229 * `getAggr()` => `aggr()` 228 230 * also now returns `const AggregateDecl *` 229 * `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp` 231 * `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp` **TODO** write 230 232 231 233 `BasicType`
Note:
See TracChangeset
for help on using the changeset viewer.