Changes in src/AST/porting.md [9b4f329:489bacf]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/porting.md
r9b4f329 r489bacf 38 38 39 39 `N->print(std::ostream&)` is a visitor now, port these methods to `ast::Print` class 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 40 * **TODO** `Declaration::printShort` should also be integrated 43 41 44 42 `clone` is private to `Node` now … … 48 46 /// Must be copied in ALL derived classes 49 47 template<typename node_t> 50 friend automutate(const node_t * node);48 friend node_t * mutate(const node_t * node); 51 49 52 50 All leaves of the `Node` inheritance tree are now declared `final` … … 112 110 113 111 ## Specific Nodes ## 112 `Attribute` 113 * `parameters` => `params` 114 114 115 `Decl` 115 116 * `storageClasses` => `storage` … … 208 209 209 210 `CompoundStmt` 210 * **TODO** port copy operator211 * Needs to be an almost-shallow clone, where the declarations are cloned only if needed212 * **TODO** port `DeclReplacer`213 211 * Still a `std::list` for children, rather than `std::vector` 214 212 * allows more-efficient splicing for purposes of later code generation … … 229 227 * `getAggr()` => `aggr()` 230 228 * also now returns `const AggregateDecl *` 231 * `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp` **TODO** write229 * `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp` 232 230 233 231 `BasicType`
Note:
See TracChangeset
for help on using the changeset viewer.