feat(llgo/xtools): add llcppsymg.go

This commit is contained in:
morpingsss
2024-07-26 10:31:20 +08:00
committed by luoliwoshang
parent bdca09007d
commit a96d6a8148
3 changed files with 278 additions and 10 deletions

View File

@@ -0,0 +1,29 @@
package common
type CPPSymbol struct {
Symbol string `json:"symbol"`
Type string `json:"type"`
Name string `json:"name"`
}
type ASTInformation struct {
Namespace string `json:"namespace"`
Class string `json:"class"`
Name string `json:"name"`
BaseClasses []string `json:"baseClasses"`
ReturnType string `json:"returnType"`
Location string `json:"location"`
Parameters []Parameter `json:"parameters"`
Symbol string `json:"symbol"`
}
type Parameter struct {
Name string `json:"name"`
Type string `json:"type"`
}
type SymbolInfo struct {
Mangle string `json:"mangle"` // C++ Symbol
CPP string `json:"c++"` // C++ function name
Go string `json:"go"` // Go function name
}