Add is_templated() helper
This commit is contained in:
parent
dc290415f1
commit
67f247533c
6 changed files with 26 additions and 4 deletions
|
|
@ -40,6 +40,8 @@ using h = g<T, a>;
|
|||
cpp_entity_index idx;
|
||||
auto file = parse(idx, "cpp_alias_template.cpp", code);
|
||||
auto count = test_visit<cpp_alias_template>(*file, [&](const cpp_alias_template& alias) {
|
||||
REQUIRE(is_templated(alias.type_alias()));
|
||||
|
||||
if (alias.name() == "a")
|
||||
{
|
||||
check_template_parameters(alias, {{cpp_entity_kind::template_type_parameter_t, "T"}});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue