Parse template parameters and part of alias template
This commit is contained in:
parent
d21d017d8a
commit
cd4a25e959
14 changed files with 688 additions and 45 deletions
|
|
@ -39,6 +39,8 @@ namespace cppast
|
|||
{
|
||||
}
|
||||
|
||||
basic_builder(basic_builder&&) = default;
|
||||
|
||||
/// \effects Adds a parameter.
|
||||
void add_parameter(std::unique_ptr<cpp_template_parameter> parameter)
|
||||
{
|
||||
|
|
@ -46,6 +48,12 @@ namespace cppast
|
|||
.parameters_.push_back(*template_entity, std::move(parameter));
|
||||
}
|
||||
|
||||
/// \returns The not yet finished template.
|
||||
T& get() const noexcept
|
||||
{
|
||||
return *template_entity;
|
||||
}
|
||||
|
||||
/// \effects Registers the template.
|
||||
/// \returns The finished template.
|
||||
std::unique_ptr<T> finish(const cpp_entity_index& idx, cpp_entity_id id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue