llcppsigfetch:reuse clangutil

This commit is contained in:
luoliwoshang
2024-09-24 14:43:33 +08:00
parent 7b498065b5
commit 7aca31992b
4 changed files with 11 additions and 71 deletions

View File

@@ -4,6 +4,7 @@ import (
"errors"
"github.com/goplus/llgo/c/cjson"
"github.com/goplus/llgo/chore/_xtool/llcppsymg/clangutils"
)
type Context struct {
@@ -49,7 +50,7 @@ func (p *Context) processFile(path string) error {
}
func (p *Context) parseFile(path string) ([]*FileEntry, error) {
converter, err := NewConverter(&Config{
converter, err := NewConverter(&clangutils.Config{
File: path,
Temp: false,
IsCpp: p.IsCpp,