env:fix incorrect extra line breaks & subcmd match

This commit is contained in:
luoliwoshang
2024-07-22 23:08:56 +08:00
parent 74cc12133e
commit 18de4e57eb
4 changed files with 88 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
package main
import (
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/cpp/llvm"
)
func main() {
mangledName := "__ZNK9INIReader10ParseErrorEv"
if name := llvm.ItaniumDemangle(mangledName, true); name != nil {
c.Printf(c.Str("%s\n"), name)
} else {
println("Failed to demangle")
}
}