genbindings/exceptions: move QGADGET to exceptions file

This commit is contained in:
mappu 2024-11-11 18:25:40 +13:00
parent ba4c212805
commit ed18c216f3
2 changed files with 4 additions and 5 deletions

View File

@ -433,11 +433,6 @@ nextMethod:
var mm CppMethod
mm.MethodName = methodName
if strings.Contains(methodName, `QGADGET`) {
log.Printf("Skipping method %q with weird QGADGET behaviour\n", mm.MethodName)
continue
}
err := parseMethod(node, &mm)
if err != nil {
if errors.Is(err, ErrTooComplex) {

View File

@ -197,6 +197,10 @@ func AllowMethod(className string, mm CppMethod) error {
return ErrTooComplex // Skip private type
}
if strings.Contains(mm.MethodName, `QGADGET`) {
return ErrTooComplex // Skipping method with weird QGADGET behaviour
}
if mm.IsReceiverMethod() {
// Non-projectable receiver pattern parameters
return ErrTooComplex