Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/porting.md

    r9b4f329 r489bacf  
    3838
    3939`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
    4341
    4442`clone` is private to `Node` now
     
    4846      /// Must be copied in ALL derived classes
    4947      template<typename node_t>
    50       friend auto mutate(const node_t * node);
     48      friend node_t * mutate(const node_t * node);
    5149
    5250All leaves of the `Node` inheritance tree are now declared `final`
     
    112110
    113111## Specific Nodes ##
     112`Attribute`
     113* `parameters` => `params`
     114
    114115`Decl`
    115116* `storageClasses` => `storage`
     
    208209
    209210`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`
    213211* Still a `std::list` for children, rather than `std::vector`
    214212  * allows more-efficient splicing for purposes of later code generation
     
    229227  * `getAggr()` => `aggr()`
    230228    * also now returns `const AggregateDecl *`
    231 * `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp` **TODO** write
     229* `genericSubstitution()` moved to own visitor in `AST/GenericSubstitution.hpp`
    232230
    233231`BasicType`
Note: See TracChangeset for help on using the changeset viewer.