From 0484d4bb778f2ad02bd46c8ed3392c5b987d4011 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Mon, 2 Sep 2024 17:52:51 +0800 Subject: [PATCH] llcppg/ast:func mangle name --- chore/llcppg/ast/ast.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chore/llcppg/ast/ast.go b/chore/llcppg/ast/ast.go index 46c16dc3..ef825c82 100644 --- a/chore/llcppg/ast/ast.go +++ b/chore/llcppg/ast/ast.go @@ -317,10 +317,11 @@ func (*EnumTypeDecl) declNode() {} // Ret Name(Params); type FuncDecl struct { DeclBase - Name *Ident - Type *FuncType - IsInline bool - IsStatic bool + Name *Ident + MangledName string // C: same as Name, C++: mangled + Type *FuncType + IsInline bool + IsStatic bool // Class method specific fields IsConst bool // const member function