Skip to content

Commit

Permalink
Ensuring typedefs to all kinds of arrays work as expected (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding authored Apr 16, 2020
1 parent 9fbfa57 commit 2126c1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ private void VisitTypedefDeclForUnderlyingType(TypedefDecl typedefDecl, Type und
{
VisitTypedefDeclForUnderlyingType(typedefDecl, typedefType.Decl.UnderlyingType);
}
else if (!(underlyingType is BuiltinType) && !(underlyingType is IncompleteArrayType) && !(underlyingType is TagType))
else if (!(underlyingType is ArrayType) && !(underlyingType is BuiltinType) && !(underlyingType is TagType))
{
AddDiagnostic(DiagnosticLevel.Error, $"Unsupported underlying type: '{underlyingType.TypeClass}'. Generating bindings may be incomplete.", typedefDecl);
}
Expand Down

0 comments on commit 2126c1f

Please sign in to comment.