diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-28 08:48:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 15:47:28 +0200 |
commit | b808c255b6a9ddba085bf5646e7d20ec344f2e2d (patch) | |
tree | 32730291f7e6de8ef0a227905520dd66fb4ec0f3 /libbuild2/types.hxx | |
parent | 3552356a87402727e663131994fa87f48b3cd4fb (diff) |
Initial support for ad hoc recipes (still work in progress)
Diffstat (limited to 'libbuild2/types.hxx')
-rw-r--r-- | libbuild2/types.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libbuild2/types.hxx b/libbuild2/types.hxx index d20fa22..6582c3a 100644 --- a/libbuild2/types.hxx +++ b/libbuild2/types.hxx @@ -230,6 +230,7 @@ namespace build2 using butl::path_name_view; using butl::path_name_value; using butl::dir_path; + using butl::dir_name_view; using butl::path_cast; using butl::basic_path; using butl::invalid_path; @@ -347,6 +348,12 @@ namespace build2 location (uint64_t l, uint64_t c): line (l), column (c) {} }; + // Print in the <file>:<line>:<column> form with 0 lines/columns not + // printed. Nothing is printed for an empty location. + // + ostream& + operator<< (ostream&, const location&); + // Similar (and implicit-convertible) to the above but stores a copy of the // path. // @@ -371,7 +378,6 @@ namespace build2 LIBBUILD2_SYMEXPORT ostream& operator<< (ostream&, run_phase); // utility.cxx - } // In order to be found (via ADL) these have to be either in std:: or in |