Remove parameter children from e.g. cpp_function_base

Also template parameter children of cpp_template_template_parameter.
Now accessible over named function, consistent with base classes, other template parameters etc.
This commit is contained in:
Jonathan Müller 2017-04-11 18:50:02 +02:00
commit c5d6df957c
9 changed files with 63 additions and 59 deletions

View file

@ -205,7 +205,7 @@ struct b<0, T> {};
*cpp_template_parameter_type::build(
cpp_template_type_parameter_ref(cpp_entity_id(""),
"T"))));
for (auto& param : mfunc)
for (auto& param : mfunc.parameters())
REQUIRE(
equal_types(idx, param.type(),
*cpp_template_parameter_type::build(