genbindings: move exception from clang2il into standard config-allowlist

This commit is contained in:
mappu 2025-04-05 21:18:37 +13:00
parent 97155eb771
commit 6cb0296e6d
2 changed files with 6 additions and 6 deletions

View File

@ -788,12 +788,6 @@ func parseTypeString(typeString string) (CppParameter, []CppParameter, bool, err
returnType := parseSingleTypeString(strings.TrimSpace(typeString[0:opos]))
// Skip functions that return ints-by-reference since the ergonomics don't
// go through the binding
if returnType.IntType() && returnType.ByRef {
return CppParameter{}, nil, false, ErrTooComplex // e.g. QSize::rheight()
}
inner := typeString[opos+1 : epos]
// Should be no more brackets

View File

@ -347,6 +347,12 @@ func AllowMethod(className string, mm CppMethod) error {
return ErrTooComplex
}
// Skip functions that return ints-by-reference since the ergonomics don't
// go through the binding
if mm.ReturnType.IntType() && mm.ReturnType.ByRef {
return ErrTooComplex // e.g. QSize::rheight()
}
return nil // OK, allow
}