genbindings/qset: skip over these

This commit is contained in:
mappu 2024-08-19 19:15:05 +12:00
parent fb538b0a3b
commit d92e87b49d
2 changed files with 7 additions and 0 deletions

View File

@ -71,6 +71,9 @@ func CheckComplexity(p CppParameter) error {
if p.QPairOf() {
return ErrTooComplex // e.g. QGradientStop
}
if p.QSetOf() {
return ErrTooComplex // e.g. QStateMachine
}
if t, ok := p.QListOf(); ok {
if err := CheckComplexity(t); err != nil { // e.g. QGradientStops is a QVector<> (OK) of QGradientStop (not OK)
return err

View File

@ -39,6 +39,10 @@ func (p CppParameter) QPairOf() bool {
return strings.HasPrefix(p.ParameterType, `QPair<`) // TODO support this
}
func (p CppParameter) QSetOf() bool {
return strings.HasPrefix(p.ParameterType, `QSet<`) // TODO support this
}
func (p CppParameter) IntType() bool {
switch p.ParameterType {
case "int", "unsigned int", "uint",