diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-20 11:12:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-27 10:30:15 +0200 |
commit | 526f66e63f23afb40cc01550ca1a3a3592a84254 (patch) | |
tree | f17fd648c4c1e11838b413c6de91ff61693c0480 /odb/diagnostics.cxx | |
parent | 0a6a2fe64508497d287aa3341e667fe313912774 (diff) |
Use cxx_lexer interface instead of pragma_lex() directly
This will allow us to use different kinds of cxx_lexer implementations
in the future.
Diffstat (limited to 'odb/diagnostics.cxx')
-rw-r--r-- | odb/diagnostics.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
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 <odb/gcc.hxx> +#include <odb/cxx-lexer.hxx> #include <odb/diagnostics.hxx> 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 |