Update to latest Clang AST spec.

This commit is contained in:
gmp
2021-06-11 11:24:25 -04:00
parent 0bc23404da
commit f4a9dae250
16 changed files with 345 additions and 6 deletions
+4 -2
View File
@@ -716,7 +716,7 @@ func (w *Wrapper) addIntCat(name string, ns []ast.Node) {
}
case *ast.ObjCRootClassAttr, *ast.VisibilityAttr,
*ast.ObjCIvarDecl, *ast.ArcWeakrefUnavailableAttr,
*ast.ObjCExceptionAttr:
*ast.ObjCExceptionAttr, *ast.SwiftNameAttr:
default:
fmt.Printf("AST parse error: node type is %s\n", reflect.TypeOf(x).String())
}
@@ -1388,7 +1388,9 @@ func (w *Wrapper) MethodFromSig(sig, class string) *Method {
}
sig = sig[1:]
rem, n := types.MethodSignature(sig, types.NewNode("AST"))
if Debug { fmt.Println(n.String()) }
if Debug {
fmt.Println(n.String())
}
if len(rem) > 0 {
fmt.Printf("Failed to parse method signature %s (%s)\n", sig, rem)
os.Exit(-1)