Ignore dependent type for now
This commit is contained in:
parent
4db09778b5
commit
5d95c1ed5d
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,6 @@ namespace
|
||||||
case CXType_Vector:
|
case CXType_Vector:
|
||||||
case CXType_ObjCInterface:
|
case CXType_ObjCInterface:
|
||||||
case CXType_ObjCObjectPointer:
|
case CXType_ObjCObjectPointer:
|
||||||
case CXType_Dependent:
|
|
||||||
{
|
{
|
||||||
auto msg = detail::format("unexpected type of kind '",
|
auto msg = detail::format("unexpected type of kind '",
|
||||||
detail::get_type_kind_spelling(type).c_str(), "'");
|
detail::get_type_kind_spelling(type).c_str(), "'");
|
||||||
|
|
@ -478,6 +477,7 @@ namespace
|
||||||
context.logger->log("libclang parser", diagnostic{msg, location, severity::warning});
|
context.logger->log("libclang parser", diagnostic{msg, location, severity::warning});
|
||||||
}
|
}
|
||||||
// fallthrough
|
// fallthrough
|
||||||
|
case CXType_Dependent: // seems to have something to do with expressions, just ignore that (for now?)
|
||||||
case CXType_Unexposed:
|
case CXType_Unexposed:
|
||||||
if (auto ftype = try_parse_function_type(context, cur, type))
|
if (auto ftype = try_parse_function_type(context, cur, type))
|
||||||
// guess what: after you've called clang_getPointeeType() on a function pointer
|
// guess what: after you've called clang_getPointeeType() on a function pointer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue