llcppg/ast:func mangle name

This commit is contained in:
luoliwoshang
2024-09-02 17:52:51 +08:00
parent 3ce9567f62
commit 0484d4bb77

View File

@@ -317,10 +317,11 @@ func (*EnumTypeDecl) declNode() {}
// Ret Name(Params); // Ret Name(Params);
type FuncDecl struct { type FuncDecl struct {
DeclBase DeclBase
Name *Ident Name *Ident
Type *FuncType MangledName string // C: same as Name, C++: mangled
IsInline bool Type *FuncType
IsStatic bool IsInline bool
IsStatic bool
// Class method specific fields // Class method specific fields
IsConst bool // const member function IsConst bool // const member function