Changes in src/AST/Label.hpp [6d51bd7:e0115286]
- File:
-
- 1 edited
-
src/AST/Label.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Label.hpp
r6d51bd7 re0115286 35 35 36 36 Label( CodeLocation loc, const std::string& name = "", 37 std::vector<ptr<Attribute>> && attrs = std::vector<ptr<Attribute>>{} )37 const 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 dependency 53 /// remove only if there is a better solution 54 /// The problem is that ast::ptr< ... > uses increment/decrement which won't work well with 55 /// forward declarations 56 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 50 59 } 51 60
Note:
See TracChangeset
for help on using the changeset viewer.