llcppsigfetch:conveter config

This commit is contained in:
luoliwoshang
2024-08-19 18:01:46 +08:00
parent 090e689689
commit 48efd6689e
5 changed files with 127 additions and 69 deletions

View File

@@ -59,7 +59,10 @@ func (p *Context) processFile(path string) error {
}
func (p *Context) parseFile(path string) (map[string]*ast.File, error) {
converter, err := NewConverter(path, false)
converter, err := NewConverter(&Config{
File: path,
Temp: false,
})
if err != nil {
return nil, errors.New("failed to create converter " + path)
}