aboutsummaryrefslogtreecommitdiff
path: root/build2/target-key
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-24 12:03:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-24 12:03:50 +0200
commitaec5f7309b2ee7210dc39de9c792f35273c73c10 (patch)
tree039064cbccb9ef01a5b93ca1659ae05137e61d3f /build2/target-key
parent4b507ea962169a8d19e4b37b940448eba97d87a4 (diff)
Differentiate extension printing according to stream verbosity
Diffstat (limited to 'build2/target-key')
-rw-r--r--build2/target-key13
1 files changed, 11 insertions, 2 deletions
diff --git a/build2/target-key b/build2/target-key
index 4246cf2..1c8037c 100644
--- a/build2/target-key
+++ b/build2/target-key
@@ -13,6 +13,8 @@
#include <butl/utility> // compare_c_string
#include <build2/types>
+#include <build2/utility>
+
#include <build2/target-type>
namespace build2
@@ -48,8 +50,15 @@ namespace build2
}
};
- std::ostream&
- operator<< (std::ostream&, const target_key&); // Defined in target.cxx
+ // If the target type has a custom print function, call that. Otherwise,
+ // call to_stream() with the current stream verbosity as a third argument.
+ // Both are defined in target.cxx.
+ //
+ ostream&
+ operator<< (ostream&, const target_key&);
+
+ ostream&
+ to_stream (ostream&, const target_key&, uint16_t ext_verb);
}
#endif // BUILD2_TARGET_KEY