llcppsigfetch:typedecl name

This commit is contained in:
luoliwoshang
2024-08-20 14:19:48 +08:00
parent 1f72a52015
commit 697c21b120
3 changed files with 26 additions and 0 deletions

View File

@@ -427,6 +427,7 @@ func (ct *Converter) ProcessStructOrClass(cursor clang.Cursor, tag ast.Tag) *ast
decl := &ast.TypeDecl{
DeclBase: ct.CreateDeclBase(cursor),
Tag: tag,
Name: &ast.Ident{Name: c.GoString(name.CStr())},
Fields: fields,
Methods: methods,
}