aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/diagnostics.ixx
blob: 7c1a4329c9555c5ab765b20e8325a6023e77647a (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
33
34
35
36
37
38
39
40
41
42
43
44
// file      : libbuild2/diagnostics.ixx -*- C++ -*-
// license   : MIT; see accompanying LICENSE file

namespace build2
{
  LIBBUILD2_SYMEXPORT void
  print_diag_impl (const char*, target_key*, target_key&&, const char*);

  inline void
  print_diag (const char* p, target_key&& l, target_key&& r, const char* c)
  {
    print_diag_impl (p, &l, move (r), c);
  }

  inline void
  print_diag (const char* p, target_key& r)
  {
    print_diag_impl (p, nullptr, move (r), nullptr);
  }

  inline void
  print_diag (const char* p, const path& r)
  {
    print_diag (p, path_name (&r));
  }

  inline void
  print_diag (const char* p, const target& l, const path& r, const char* c)
  {
    print_diag (p, l, path_name (&r), c);
  }

  inline void
  print_diag (const char* p, const path& l, const path& r, const char* c)
  {
    print_diag (p, l, path_name (&r), c);
  }

  inline void
  print_diag (const char* p, const string& l, const path& r, const char* c)
  {
    print_diag (p, l, path_name (&r), c);
  }
}