diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-18 07:00:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-18 07:56:09 +0200 |
commit | f50a3a56b59698ffce3965711898a94e7849aa78 (patch) | |
tree | d52f6e2343d5cc4a1f83861e61e19520c22c7ae4 /libbuild2/target-key.hxx | |
parent | f80c8ff7ff3b1eef22a3c90943f324d45d855b97 (diff) |
Complete low verbosity diagnostics rework
Diffstat (limited to 'libbuild2/target-key.hxx')
-rw-r--r-- | libbuild2/target-key.hxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libbuild2/target-key.hxx b/libbuild2/target-key.hxx index c5690a9..9ac87dc 100644 --- a/libbuild2/target-key.hxx +++ b/libbuild2/target-key.hxx @@ -94,8 +94,21 @@ namespace build2 LIBBUILD2_SYMEXPORT ostream& operator<< (ostream&, const target_key&); - LIBBUILD2_SYMEXPORT ostream& - to_stream (ostream&, const target_key&, optional<stream_verbosity> = nullopt); + // If name_only is true, then only print the target name (and extension, if + // necessary), without the directory or type. + // + // Return true if the result is regular, that is, in the + // <dir>/<type>{<name>}@<out>/ form with the individual components + // corresponding directly to the target_key members (that is, without moving + // parts around as would be the case for directories). This information is + // used when trying to print several targets in a combined form (for + // example, {hxx cxx}{foo}) in print_diag(). + // + LIBBUILD2_SYMEXPORT bool + to_stream (ostream&, + const target_key&, + optional<stream_verbosity> = nullopt, + bool name_only = false); } namespace std |