Permalink
Browse files

Merge pull request #15 from stanionascu/clang5

Properly handle CXTypeKind.CXType_Elaborated
  • Loading branch information...
mjsabby committed May 6, 2017
2 parents 9b5f81a + 4336463 commit 74354493a6d019dd070c8368f0bfd01c6b7fc7be
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 = "[]";
break;
break;
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 7435449

Please sign in to comment.