Register namespace alias as forward declaration
They may occur multiple times in a project.
This commit is contained in:
parent
8ffb2b748f
commit
de7f29d267
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ std::unique_ptr<cpp_namespace_alias> cpp_namespace_alias::build(const cpp_entity
|
|||
{
|
||||
auto ptr = std::unique_ptr<cpp_namespace_alias>(
|
||||
new cpp_namespace_alias(std::move(name), std::move(target)));
|
||||
idx.register_definition(std::move(id), type_safe::ref(*ptr));
|
||||
idx.register_forward_declaration(std::move(id), type_safe::ref(*ptr));
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue