Added storing list of using namespace directives for each namespace

This commit is contained in:
Bartek Kryza
2022-03-14 23:23:48 +01:00
parent 1d0bef2085
commit c0a759c2c4
5 changed files with 52 additions and 1 deletions

View File

@@ -187,6 +187,8 @@ void translation_unit_visitor::operator()(const cppast::cpp_entity &file)
if (ns_ref.get(ctx.entity_index()).size() > 0) {
auto full_ns = cx::util::full_name(ctx.get_namespace(),
ns_ref.get(ctx.entity_index()).at(0).get());
ctx.add_using_namespace_directive(full_ns);
}
}
});