source: src/AST/Print.hpp @ e7f8119

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since e7f8119 was 99d4584, checked in by Aaron Moss <a3moss@…>, 5 years ago

Further stubs for resolver port

  • also switched order of constructor params on Indenter
  • Property mode set to 100644
File size: 912 bytes
RevLine 
[461046f]1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// Print.hpp --
8//
9// Author           : Thierry Delisle
10// Created On       : Tue May 21 16:20:15 2019
11// Last Modified By :
12// Last Modified On :
13// Update Count     :
14//
15
16#pragma once
17
18#include <iosfwd>
[d76c588]19#include <utility> // for forward
[461046f]20
21#include "AST/Node.hpp"
22#include "Common/Indenter.h"
23
24namespace ast {
25
[6f4b7f2]26class Decl;
27
28/// Print a node with the given indenter
[461046f]29void print( std::ostream & os, const ast::Node * node, Indenter indent = {} );
30
[6f4b7f2]31/// Print a declaration in its short form
32void printShort( std::ostream & os, const ast::Decl * node, Indenter indent = {} );
33
34inline void printShort( std::ostream & os, const ast::Decl * node, unsigned int indent ) {
[99d4584]35    printShort( os, node, Indenter{ indent } );
[6f4b7f2]36}
37
[461046f]38}
Note: See TracBrowser for help on using the repository browser.