c/clang/symg:refine config usage

This commit is contained in:
luoliwoshang
2024-07-30 09:33:05 +08:00
parent 1219230168
commit 67b10d8d38
2 changed files with 25 additions and 10 deletions

View File

@@ -16,6 +16,10 @@
package types
import (
"github.com/goplus/llgo/c/cjson"
)
// Config represents a configuration for the llcppg tool.
type Config struct {
Name string `json:"name"`
@@ -26,6 +30,11 @@ type Config struct {
JSONPath string `json:"jsonPath"`
}
type Conf struct {
*cjson.JSON
*Config
}
type CPPSymbol struct {
Symbol string `json:"symbol"`
Type string `json:"type"`