llcppsigfetch:extract info command

This commit is contained in:
luoliwoshang
2024-09-05 12:18:37 +08:00
parent e1236f9deb
commit ae71f3c186
2 changed files with 68 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ func NewConverter(config *Config) (*Converter, error) {
}
func CreateTranslationUnit(config *Config) (*clang.Index, *clang.TranslationUnit, error) {
if config.Args == nil {
if config.Args == nil || len(config.Args) == 0 {
config.Args = []string{"-x", "c++", "-std=c++11"}
}