Skip to content

Commit 7bd4dc0

Browse files
Add char types tp enum alias link (#520)
1 parent c0a9c1b commit 7bd4dc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/generator/passes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ function (x::LinkEnumAlias)(dag::ExprDAG, options::Dict)
531531

532532
ty = getTypedefDeclUnderlyingType(node.cursor) |> getCanonicalType
533533
typeKind = kind(ty)
534-
typeKind == CXType_Int || typeKind == CXType_Short || typeKind == CXType_Long || typeKind == CXType_LongLong ||
535-
typeKind == CXType_UInt || typeKind == CXType_UShort || typeKind == CXType_ULong || typeKind == CXType_ULongLong ||
534+
typeKind == CXType_Int || typeKind == CXType_Short || typeKind == CXType_Long || typeKind == CXType_LongLong || typeKind == CXType_Char_S ||
535+
typeKind == CXType_UInt || typeKind == CXType_UShort || typeKind == CXType_ULong || typeKind == CXType_ULongLong || typeKind == CXType_UChar ||
536536
continue
537537

538538
for (tagid, j) in dag.tags

test/include/enum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ enum X {
66
C,
77
};
88

9-
typedef uint32_t X;
9+
typedef uint32_t X;

0 commit comments

Comments
 (0)