llcppg:remove unuse types

This commit is contained in:
luoliwoshang
2024-08-08 15:09:24 +08:00
parent fe5de95008
commit 4c2099d33e

View File

@@ -16,10 +16,6 @@
package types package types
import (
"github.com/goplus/llgo/xtool/nm"
)
// Config represents a configuration for the llcppg tool. // Config represents a configuration for the llcppg tool.
type Config struct { type Config struct {
Name string `json:"name"` Name string `json:"name"`
@@ -29,27 +25,6 @@ type Config struct {
TrimPrefixes []string `json:"trimPrefixes"` TrimPrefixes []string `json:"trimPrefixes"`
} }
type CPPSymbol struct {
DemangleName string
*nm.Symbol
}
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 { type SymbolInfo struct {
Mangle string `json:"mangle"` // C++ Symbol Mangle string `json:"mangle"` // C++ Symbol
CPP string `json:"c++"` // C++ function name CPP string `json:"c++"` // C++ function name