summaryrefslogtreecommitdiff
path: root/tiger-compiler/lib/misc/indent.hh
blob: 04cd610a8be2f722b698cd20f0e98cdc5fbb57d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 ** \file misc/indent.hh
 ** \brief Indentation relative functions.
 **/

#pragma once

#include <iosfwd>

namespace misc
{
  /// Increment the indentation.
  std::ostream& incindent(std::ostream& o);

  /// Decrement the indentation.
  std::ostream& decindent(std::ostream& o);

  /// Reset the indentation.
  std::ostream& resetindent(std::ostream& o);

  /// Print an end of line, then set the indentation.
  std::ostream& iendl(std::ostream& o);

  /// Increment the indentation, print an end of line, and set the indentation.
  std::ostream& incendl(std::ostream& o);

  /// Decrement the indentation, print an end of line, and set the indentation.
  std::ostream& decendl(std::ostream& o);

} // namespace misc