Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Print.hpp

    r432ce7a r99d4584  
    1616#pragma once
    1717
    18 #include <iostream>
    19 #include <utility>   // for forward
     18#include <iosfwd>
     19#include <utility> // for forward
    2020
    2121#include "AST/Node.hpp"
     
    3232void printShort( std::ostream & os, const ast::Decl * node, Indenter indent = {} );
    3333
    34 /// Print a collection of items
    35 template< typename Coll >
    36 void printAll( std::ostream & os, const Coll & c, Indenter indent = {} ) {
    37     for ( const auto & i : c ) {
    38         if ( ! i ) continue;
    39        
    40         os << indent;
    41         print( os, i, indent );
    42         os << std::endl;
    43     }
     34inline void printShort( std::ostream & os, const ast::Decl * node, unsigned int indent ) {
     35    printShort( os, node, Indenter{ indent } );
    4436}
    4537
Note: See TracChangeset for help on using the changeset viewer.