Steal comment of nested namespace

This commit is contained in:
Jonathan Müller 2017-12-22 10:54:37 +01:00
commit 755f251da9
10 changed files with 52 additions and 35 deletions

View file

@ -504,7 +504,7 @@ std::unique_ptr<cpp_file> libclang_parser::do_parse(const cpp_entity_index& idx,
macro_iter != preprocessed.macros.end() && macro_iter->line <= line; ++macro_iter)
builder.add_child(std::move(macro_iter->macro));
auto entity = detail::parse_entity(context, cur);
auto entity = detail::parse_entity(context, &builder.get(), cur);
if (entity)
builder.add_child(std::move(entity));
}