aboutsummaryrefslogtreecommitdiff
path: root/build/diagnostics
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-23 09:59:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-23 09:59:52 +0200
commit3c57a25a4d6a80301ece82ab33f1394e34f8b873 (patch)
tree2ff64ebcfab74f90e81fdd2963fb653630d6d17b /build/diagnostics
parent34e5a2da18f76c7d7de79a5c12b0e85ee89c4095 (diff)
Basic test support
Diffstat (limited to 'build/diagnostics')
-rw-r--r--build/diagnostics19
1 files changed, 14 insertions, 5 deletions
diff --git a/build/diagnostics b/build/diagnostics
index 3f05688..2eaaa84 100644
--- a/build/diagnostics
+++ b/build/diagnostics
@@ -5,6 +5,7 @@
#ifndef BUILD_DIAGNOSTICS
#define BUILD_DIAGNOSTICS
+#include <cstddef> // size_t
#include <cstdint>
#include <utility>
#include <cassert>
@@ -52,7 +53,7 @@ namespace build
// Action phrases, e.g., "configure update exe{foo}", "updating exe{foo}",
- // and "updating exe{foo} already configured".
+ // and "updating exe{foo} is configured".
//
struct action;
class target;
@@ -64,17 +65,25 @@ namespace build
diag_doing (const action&, const target&);
std::string
- diag_already_done (const action&, const target&);
+ diag_done (const action&, const target&);
- // Print process commmand line.
+ // Print process commmand line. If the number of elements is specified
+ // (or the second version is used), then it will print the piped multi-
+ // process command line, if present. In this case, the expected format
+ // is as follows:
+ //
+ // name1 arg arg ... nullptr
+ // name2 arg arg ... nullptr
+ // ...
+ // nameN arg arg ... nullptr nullptr
//
void
- print_process (const char* const* args);
+ print_process (const char* const* args, std::size_t n = 0);
inline void
print_process (const cstrings& args)
{
- print_process (args.data ());
+ print_process (args.data (), args.size ());
}
// Trace verbosity level.