Changeset d76c588 for src/AST/Print.hpp
- Timestamp:
- May 30, 2019, 4:10:24 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8d70648
- Parents:
- eba615c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Print.hpp
reba615c rd76c588 17 17 18 18 #include <iosfwd> 19 #include <utility> // for forward 19 20 20 21 #include "AST/Node.hpp" … … 28 29 void print( std::ostream & os, const ast::Node * node, Indenter indent = {} ); 29 30 30 inline void print( std::ostream & os, const ast::Node * node, unsigned int indent ) { 31 print( os, node, Indenter{ Indenter::tabsize, indent }); 31 /// Wrap any standard format printer (matching above) with integer Indenter constructor 32 template<typename T> 33 inline void print( std::ostream & os, T && x, unsigned int indent ) { 34 print( os, std::forward<T>(x), Indenter{ Indenter::tabsize, indent }); 32 35 } 33 36
Note: See TracChangeset
for help on using the changeset viewer.