diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 11:14:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 11:14:05 +0200 |
commit | db0edaafe15831ba6fa9c2109da37942506c62b1 (patch) | |
tree | 320dfcbf16b553c162cd079d633f16b6054b9740 /build2/parser | |
parent | 19c37866524f60a7710b256dd13bf1da9f8cff16 (diff) |
Cleanup absolute/relative path diagnostics by introducing stream verbosity
Diffstat (limited to 'build2/parser')
-rw-r--r-- | build2/parser | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/build2/parser b/build2/parser index a379bd7..ae3add9 100644 --- a/build2/parser +++ b/build2/parser @@ -36,13 +36,14 @@ namespace build2 // Issue diagnostics and throw failed in case of an error. // void - parse_buildfile (std::istream&, const path&, scope& root, scope& base); + parse_buildfile (std::istream&, const path& name, + scope& root, scope& base); buildspec - parse_buildspec (std::istream&, const std::string& name); + parse_buildspec (std::istream&, const path& name); token - parse_variable (lexer&, scope&, std::string name, token_type kind); + parse_variable (lexer&, scope&, std::string var_name, token_type kind); names_type parse_export_stub (std::istream& is, const path& p, scope& r, scope& b) @@ -285,7 +286,7 @@ namespace build2 protected: bool boot_; - const std::string* path_; // Path processed by diag_relative() and pooled. + const path* path_; // Current path. lexer* lexer_; target* target_; // Current target, if any. scope* scope_; // Current base scope (out_base). |