llcppsigfetch:enum type

This commit is contained in:
luoliwoshang
2024-08-23 14:57:36 +08:00
parent 3ac95a9213
commit cd19625522
3 changed files with 94 additions and 84 deletions

View File

@@ -334,7 +334,9 @@ func (ct *Converter) ProcessEnumDecl(cursor clang.Cursor) *ast.EnumTypeDecl {
return &ast.EnumTypeDecl{
DeclBase: ct.CreateDeclBase(cursor),
Name: &ast.Ident{Name: c.GoString(name.CStr())},
Items: items,
Type: &ast.EnumType{
Items: items,
},
}
}