Add cpp_function_template_specialization
This commit is contained in:
parent
93c6e0f44c
commit
93f5ad5999
7 changed files with 126 additions and 5 deletions
|
|
@ -71,6 +71,8 @@ const char* cppast::to_string(cpp_entity_kind kind) noexcept
|
|||
return "alias template";
|
||||
case cpp_entity_kind::function_template_t:
|
||||
return "function template";
|
||||
case cpp_entity_kind::function_template_specialization_t:
|
||||
return "function template specialization";
|
||||
|
||||
case cpp_entity_kind::count:
|
||||
break;
|
||||
|
|
@ -111,6 +113,7 @@ bool cppast::is_type(cpp_entity_kind kind) noexcept
|
|||
case cpp_entity_kind::template_template_parameter_t:
|
||||
case cpp_entity_kind::alias_template_t:
|
||||
case cpp_entity_kind::function_template_t:
|
||||
case cpp_entity_kind::function_template_specialization_t:
|
||||
case cpp_entity_kind::count:
|
||||
break;
|
||||
}
|
||||
|
|
@ -124,6 +127,7 @@ bool cppast::is_template(cpp_entity_kind kind) noexcept
|
|||
{
|
||||
case cpp_entity_kind::alias_template_t:
|
||||
case cpp_entity_kind::function_template_t:
|
||||
case cpp_entity_kind::function_template_specialization_t:
|
||||
return true;
|
||||
|
||||
case cpp_entity_kind::file_t:
|
||||
|
|
|
|||
|
|
@ -12,3 +12,8 @@ cpp_entity_kind cpp_function_template::do_get_entity_kind() const noexcept
|
|||
{
|
||||
return cpp_entity_kind::function_template_t;
|
||||
}
|
||||
|
||||
cpp_entity_kind cpp_function_template_specialization::do_get_entity_kind() const noexcept
|
||||
{
|
||||
return cpp_entity_kind::function_template_specialization_t;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ bool detail::visit(const cpp_entity& e, detail::visitor_callback_t cb, void* fun
|
|||
return handle_container<cpp_alias_template>(e, cb, functor);
|
||||
case cpp_entity_kind::function_template_t:
|
||||
return handle_container<cpp_function_template>(e, cb, functor);
|
||||
case cpp_entity_kind::function_template_specialization_t:
|
||||
return handle_container<cpp_function_template_specialization>(e, cb, functor);
|
||||
|
||||
case cpp_entity_kind::namespace_alias_t:
|
||||
case cpp_entity_kind::using_directive_t:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue