aboutsummaryrefslogtreecommitdiff
path: root/build2/dump.hxx
blob: e9a3b30ec52d6c4030fa08bc52b40d639449486f (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
31
32
// file      : build2/dump.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef BUILD2_DUMP_HXX
#define BUILD2_DUMP_HXX

#include <build2/types.hxx>
#include <build2/utility.hxx>

#include <build2/action.hxx>

namespace build2
{
  class scope;
  class target;

  // Dump the build state to diag_stream. If action is specified, then assume
  // rules have been matched for this action and dump action-specific
  // information (like rule-specific variables).
  //
  void
  dump (optional<action> = nullopt);

  void
  dump (const scope&, const char* ind = "");

  void
  dump (const target&, const char* ind = "");
}

#endif // BUILD2_DUMP_HXX