Add and parse cpp_auto_type
This commit is contained in:
parent
203cccd687
commit
acb2f06bfd
5 changed files with 46 additions and 3 deletions
|
|
@ -122,6 +122,7 @@ bool cppast::is_valid(const cpp_type& type) noexcept
|
|||
|
||||
case cpp_type_kind::builtin:
|
||||
case cpp_type_kind::user_defined:
|
||||
case cpp_type_kind::auto_:
|
||||
case cpp_type_kind::template_parameter:
|
||||
case cpp_type_kind::template_instantiation:
|
||||
case cpp_type_kind::unexposed:
|
||||
|
|
|
|||
|
|
@ -544,9 +544,8 @@ namespace
|
|||
case CXType_MemberPointer:
|
||||
return cpp_pointer_type::build(parse_member_pointee_type(context, cur, type));
|
||||
|
||||
// TODO: auto/decltype
|
||||
case CXType_Auto:
|
||||
break;
|
||||
return make_leave_type(type, [](std::string&&) { return cpp_auto_type::build(); });
|
||||
}
|
||||
|
||||
DEBUG_UNREACHABLE(detail::assert_handler{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue