From 526f66e63f23afb40cc01550ca1a3a3592a84254 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jul 2012 11:12:11 +0200 Subject: Use cxx_lexer interface instead of pragma_lex() directly This will allow us to use different kinds of cxx_lexer implementations in the future. --- odb/diagnostics.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'odb/diagnostics.cxx') diff --git a/odb/diagnostics.cxx b/odb/diagnostics.cxx index 41ddd63..bce1102 100644 --- a/odb/diagnostics.cxx +++ b/odb/diagnostics.cxx @@ -3,6 +3,7 @@ // license : GNU GPL v3; see accompanying LICENSE file #include +#include #include using namespace std; @@ -68,21 +69,21 @@ info (location_t loc) } std::ostream& -error () +error (cxx_lexer& l) { - return error (input_location); + return error (l.location ()); } std::ostream& -warn () +warn (cxx_lexer& l) { - return warn (input_location); + return warn (l.location ()); } std::ostream& -info () +info (cxx_lexer& l) { - return info (input_location); + return info (l.location ()); } cutl::fs::path -- cgit v1.1