diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-28 17:50:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-28 17:50:17 +0200 |
commit | c6a2b0f125c70f521daf820d014ff07b4fe8af3b (patch) | |
tree | a6648a5c1609150b9b1a1cb60966b69f197af719 | |
parent | 6c876cf3280ba63d6077656476c2fc692e4bb1ff (diff) |
Add namespace nodes to the lookup map
-rw-r--r-- | odb/parser.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx index 88c32d6..c1e0156 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -777,12 +777,13 @@ emit () // approximation for this namespace origin. Also resolve // the tree node for this namespace. // - namespace_& node ( - unit_->new_node<namespace_> ( - f, l, c, - namespace_binding ( - get_identifier (n.c_str ()), scope_->tree_node ()))); + tree tree_node ( + namespace_binding ( + get_identifier (n.c_str ()), scope_->tree_node ())); + + namespace_& node (unit_->new_node<namespace_> (f, l, c, tree_node)); unit_->new_edge<defines> (*scope_, node, n); + unit_->insert (tree_node, node); scope_ = &node; if (e == string::npos) |