Skip to content

Commit

Permalink
Merge pull request #15 from stanionascu/clang5
Browse files Browse the repository at this point in the history
Properly handle CXTypeKind.CXType_Elaborated
  • Loading branch information
Mukul Sabharwal committed May 6, 2017
2 parents 9b5f81a + 4336463 commit 7435449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ClangSharpPInvokeGenerator/Extensions.cs
Expand Up @@ -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
Expand Down

0 comments on commit 7435449

Please sign in to comment.