diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-20 13:11:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-20 18:29:45 +0200 |
commit | 9964a9aca03b38c2959994e0fdc91014da252cb8 (patch) | |
tree | 4c263c8f9ee422de9f27aecdb05a040ee116ddae /build2/parser.hxx | |
parent | 4184f61e2b795dd4c4b4a974a890bdaf98906b82 (diff) |
Implement dump directive
It can be used to print (to stderr) a human-readable representation of the
current scope or a list of targets. For example:
dump # Dump current scope.
dump lib{foo} details/exe{bar} # Dump two targets.
This is primarily useful for debugging as well as to write build system
tests.
Diffstat (limited to 'build2/parser.hxx')
-rw-r--r-- | build2/parser.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/parser.hxx b/build2/parser.hxx index ce9ad2f..3c51801 100644 --- a/build2/parser.hxx +++ b/build2/parser.hxx @@ -85,6 +85,9 @@ namespace build2 parse_diag (token&, token_type&); void + parse_dump (token&, token_type&); + + void parse_source (token&, token_type&); void |