genbindings: more exceptions

This commit is contained in:
mappu 2024-08-22 21:56:25 +12:00
parent 4c318669cc
commit 475ebc93b4
1 changed files with 10 additions and 0 deletions

View File

@ -271,6 +271,11 @@ nextMethod:
continue nextMethod
}
if ret.ClassName == "QXmlStreamWriter" && len(mm.Parameters) == 1 && mm.Parameters[0].ParameterType == "QString" && mm.Parameters[0].Pointer {
log.Printf("Skipping ctor taking QString pointer") // qxmlstream.h 4th constructor overload
continue nextMethod
}
ret.Ctors = append(ret.Ctors, mm)
case "CXXDestructorDecl":
@ -359,6 +364,11 @@ nextMethod:
continue nextMethod
}
if ret.ClassName == "QTextStream" && mm.MethodName == "readLineInto" && len(mm.Parameters) > 0 && mm.Parameters[0].ParameterType == "QString" && mm.Parameters[0].Pointer {
log.Printf("Skipping method %q using complex return type by pointer argument", mm.MethodName) // TODO support this
continue nextMethod
}
ret.Methods = append(ret.Methods, mm)
default: