Browse files

Properly handle CXTypeKind.CXType_Elaborated

  • Loading branch information...
stanionascu committed Mar 19, 2017
1 parent 9b5f81a commit 4336463f0e731414577c7e9193dae4bb503d8c92
Showing with 2 additions and 1 deletion.
  1. +2 −1 ClangSharpPInvokeGenerator/Extensions.cs
@@ -243,7 +243,8 @@ private static void CommonTypeHandling(CXType type, TextWriter tw, string outPar
case CXTypeKind.CXType_IncompleteArray:
CommonTypeHandling(clang.getArrayElementType(type), tw);
spelling = "[]";
case CXTypeKind.CXType_Elaborated:
case CXTypeKind.CXType_Unexposed: // Often these are enums and canonical type gets you the enum spelling
var canonical = clang.getCanonicalType(type);
// unexposed decl which turns into a function proto seems to be an un-typedef'd fn pointer

0 comments on commit 4336463

Please sign in to comment.