diff options
Diffstat (limited to 'odb/semantics/unit.cxx')
-rw-r--r-- | odb/semantics/unit.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/semantics/unit.cxx b/odb/semantics/unit.cxx index 260b1c6..15b2c6e 100644 --- a/odb/semantics/unit.cxx +++ b/odb/semantics/unit.cxx @@ -8,6 +8,16 @@ namespace semantics { + unit:: + unit (path const& file) + : node (file, 1, 1), graph_ (*this) + { + // Use a special edge to get this->name() return the global + // namespace name (""). + // + new_edge<global_names> (*this, *this); + } + // type info // namespace |