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/lookup.hxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'odb/lookup.hxx') diff --git a/odb/lookup.hxx b/odb/lookup.hxx index c19f963..7df8f34 100644 --- a/odb/lookup.hxx +++ b/odb/lookup.hxx @@ -35,15 +35,17 @@ namespace lookup }; std::string - parse_scoped_name (std::string& token, - cpp_ttype& type, - cxx_lexer& lexer); + parse_scoped_name (cxx_lexer&, + cpp_ttype&, + std::string& tl, // Token literal. + tree& tn); // Token node. tree - resolve_scoped_name (std::string& token, - cpp_ttype& type, - cpp_ttype& previous_type, - cxx_lexer& lexer, + resolve_scoped_name (cxx_lexer&, + cpp_ttype&, + std::string& tl, // Token literal. + tree& tn, // Token node. + cpp_ttype& ptt, // Previous token type. tree start_scope, std::string& name, bool is_type, -- cgit v1.1