Add support for member pointer types

This commit is contained in:
Jonathan Müller 2017-02-23 15:39:12 +01:00
commit 23a7248964
4 changed files with 160 additions and 30 deletions

View file

@ -94,7 +94,7 @@ bool cppast::is_valid(const cpp_type& type) noexcept
{
auto& func = static_cast<const cpp_member_function_type&>(type);
if (func.class_type().kind() != cpp_type_kind::user_defined)
if (!can_compose(func.class_type()) || !is_valid(func.class_type()))
return false;
else if (!can_compose(func.return_type()) || !is_valid(func.return_type()))
return false;