Register declarations as well
Will be overriden by definitions.
This commit is contained in:
parent
db0e649bf6
commit
cb9ad57e87
21 changed files with 98 additions and 43 deletions
|
|
@ -50,7 +50,7 @@ namespace cppast
|
|||
/// \returns The finished template.
|
||||
std::unique_ptr<T> finish(const cpp_entity_index& idx, cpp_entity_id id)
|
||||
{
|
||||
idx.register_entity(std::move(id), type_safe::cref(*template_entity));
|
||||
idx.register_definition(std::move(id), type_safe::cref(*template_entity));
|
||||
return std::move(template_entity);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue