aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/b-options.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-05-02 13:05:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-05-03 05:03:20 +0200
commit7a458f210f296cb3cc1551a4606f0cf025003f3a (patch)
tree71b20a6c67fb9b6801916406391c34e6710c3c2e /libbuild2/b-options.hxx
parentf66848dbd677b1027bade5728e04954c313231af (diff)
Add --dump-scope and --dump-target options to limit --dump output
Diffstat (limited to 'libbuild2/b-options.hxx')
-rw-r--r--libbuild2/b-options.hxx30
1 files changed, 22 insertions, 8 deletions
diff --git a/libbuild2/b-options.hxx b/libbuild2/b-options.hxx
index d965ff6..9afef25 100644
--- a/libbuild2/b-options.hxx
+++ b/libbuild2/b-options.hxx
@@ -13,8 +13,6 @@
//
// End prologue.
-#include <set>
-
#include <libbuild2/common-options.hxx>
namespace build2
@@ -167,19 +165,31 @@ namespace build2
const bool&
no_mtime_check () const;
- const std::set<string>&
+ const strings&
dump () const;
bool
dump_specified () const;
- const std::vector<name>&
+ const dir_paths&
+ dump_scope () const;
+
+ bool
+ dump_scope_specified () const;
+
+ const vector<pair<name, optional<name>>>&
+ dump_target () const;
+
+ bool
+ dump_target_specified () const;
+
+ const vector<name>&
trace_match () const;
bool
trace_match_specified () const;
- const std::vector<name>&
+ const vector<name>&
trace_execute () const;
bool
@@ -293,11 +303,15 @@ namespace build2
bool structured_result_specified_;
bool mtime_check_;
bool no_mtime_check_;
- std::set<string> dump_;
+ strings dump_;
bool dump_specified_;
- std::vector<name> trace_match_;
+ dir_paths dump_scope_;
+ bool dump_scope_specified_;
+ vector<pair<name, optional<name>>> dump_target_;
+ bool dump_target_specified_;
+ vector<name> trace_match_;
bool trace_match_specified_;
- std::vector<name> trace_execute_;
+ vector<name> trace_execute_;
bool trace_execute_specified_;
bool no_column_;
bool no_line_;