aboutsummaryrefslogtreecommitdiff
path: root/odb/lookup.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-20 11:12:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-27 10:30:15 +0200
commit526f66e63f23afb40cc01550ca1a3a3592a84254 (patch)
treef17fd648c4c1e11838b413c6de91ff61693c0480 /odb/lookup.hxx
parent0a6a2fe64508497d287aa3341e667fe313912774 (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/lookup.hxx')
-rw-r--r--odb/lookup.hxx16
1 files changed, 9 insertions, 7 deletions
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,