Changes in src/AST/Label.hpp [e0115286:6d51bd7]
- File:
-
- 1 edited
-
src/AST/Label.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Label.hpp
re0115286 r6d51bd7 35 35 36 36 Label( CodeLocation loc, const std::string& name = "", 37 const std::vector<ptr<Attribute>>& attrs = std::vector<ptr<Attribute>>{} )37 std::vector<ptr<Attribute>> && attrs = std::vector<ptr<Attribute>>{} ) 38 38 : location( loc ), name( name ), attributes( attrs ) {} 39 39 … … 48 48 inline std::ostream& operator<< ( std::ostream& out, const Label& l ) { return out << l.name; } 49 49 50 51 //=================================================================================================52 /// This disgusting and giant piece of boiler-plate is here to solve a cyclic dependency53 /// remove only if there is a better solution54 /// The problem is that ast::ptr< ... > uses increment/decrement which won't work well with55 /// forward declarations56 inline void increment( const class Label * node, Node::ref_type ref ) { node->increment( ref ); }57 inline void decrement( const class Label * node, Node::ref_type ref ) { node->decrement( ref ); }58 59 50 } 60 51
Note:
See TracChangeset
for help on using the changeset viewer.