mirror of
https://github.com/mappu/miqt.git
synced 2025-04-17 11:00:23 +00:00
genbindings: move exception from clang2il into standard config-allowlist
This commit is contained in:
parent
97155eb771
commit
6cb0296e6d
@ -788,12 +788,6 @@ func parseTypeString(typeString string) (CppParameter, []CppParameter, bool, err
|
|||||||
|
|
||||||
returnType := parseSingleTypeString(strings.TrimSpace(typeString[0:opos]))
|
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]
|
inner := typeString[opos+1 : epos]
|
||||||
|
|
||||||
// Should be no more brackets
|
// Should be no more brackets
|
||||||
|
@ -347,6 +347,12 @@ func AllowMethod(className string, mm CppMethod) error {
|
|||||||
return ErrTooComplex
|
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
|
return nil // OK, allow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user