Update to latest Clang AST spec.
This commit is contained in:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user