Changeset 6f4b7f2 for src/AST/Print.hpp


Ignore:
Timestamp:
May 24, 2019, 5:26:44 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
a7d50b6, c519942
Parents:
21a44ca
Message:

Finish Stmt printers, implement short_mode for Decls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Print.hpp

    r21a44ca r6f4b7f2  
    2323namespace ast {
    2424
     25class Decl;
     26
     27/// Print a node with the given indenter
    2528void print( std::ostream & os, const ast::Node * node, Indenter indent = {} );
    2629
     
    2932}
    3033
     34/// Print a declaration in its short form
     35void printShort( std::ostream & os, const ast::Decl * node, Indenter indent = {} );
     36
     37inline void printShort( std::ostream & os, const ast::Decl * node, unsigned int indent ) {
     38    printShort( os, node, Indenter{ Indenter::tabsize, indent } );
    3139}
     40
     41}
Note: See TracChangeset for help on using the changeset viewer.