Skip to content

Commit 2126c1f

Browse files
Ensuring typedefs to all kinds of arrays work as expected (#124)
1 parent 9fbfa57 commit 2126c1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitDecl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ private void VisitTypedefDeclForUnderlyingType(TypedefDecl typedefDecl, Type und
17351735
{
17361736
VisitTypedefDeclForUnderlyingType(typedefDecl, typedefType.Decl.UnderlyingType);
17371737
}
1738-
else if (!(underlyingType is BuiltinType) && !(underlyingType is IncompleteArrayType) && !(underlyingType is TagType))
1738+
else if (!(underlyingType is ArrayType) && !(underlyingType is BuiltinType) && !(underlyingType is TagType))
17391739
{
17401740
AddDiagnostic(DiagnosticLevel.Error, $"Unsupported underlying type: '{underlyingType.TypeClass}'. Generating bindings may be incomplete.", typedefDecl);
17411741
}

0 commit comments

Comments
 (0)