From db0edaafe15831ba6fa9c2109da37942506c62b1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 23 Jan 2016 11:14:05 +0200 Subject: Cleanup absolute/relative path diagnostics by introducing stream verbosity --- build2/lexer | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/lexer') diff --git a/build2/lexer b/build2/lexer index 69ca0a8..06f2b24 100644 --- a/build2/lexer +++ b/build2/lexer @@ -44,14 +44,14 @@ namespace build2 { public: lexer (std::istream& is, - const std::string& name, + const path& name, void (*processor) (token&, const lexer&) = nullptr) : char_scanner (is), fail (name), processor_ (processor), sep_ (false) { mode_.push (lexer_mode::normal); } - const std::string& + const path& name () const {return fail.name_;} // Note: sets mode for the next token. If mode is pairs, then @@ -115,12 +115,12 @@ namespace build2 private: struct fail_mark_base: build2::fail_mark_base { - fail_mark_base (const std::string& n): name_ (n) {} + fail_mark_base (const path& n): name_ (n) {} location_prologue operator() (const xchar&) const; - std::string name_; + path name_; }; typedef diag_mark fail_mark; -- cgit v1.1