llcppsigfetch:func mangled name

This commit is contained in:
luoliwoshang
2024-09-10 12:04:46 +08:00
parent ee5cd06077
commit c8e06b5837
6 changed files with 45 additions and 4 deletions

View File

@@ -124,6 +124,7 @@ func MarshalASTDecl(decl ast.Decl) *cjson.JSON {
root.SetItem(c.Str("_Type"), stringField("FuncDecl"))
MarshalASTDeclBase(d.DeclBase, root)
root.SetItem(c.Str("Name"), MarshalASTExpr(d.Name))
root.SetItem(c.Str("MangledName"), stringField(d.MangledName))
root.SetItem(c.Str("Type"), MarshalASTExpr(d.Type))
root.SetItem(c.Str("IsInline"), boolField(d.IsInline))
root.SetItem(c.Str("IsStatic"), boolField(d.IsStatic))