genbindings: add more exceptions

This commit is contained in:
mappu 2024-08-27 19:12:29 +12:00
parent 164ef8cb6c
commit a0812831e7
2 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func (p CppParameter) RenderTypeCabi() string {
ret = "double"
case "qintptr":
ret = "intptr_t"
case "quintptr":
case "quintptr", "uintptr":
ret = "uintptr_t"
case "qptrdiff":
ret = "ptrdiff_t"

View File

@ -105,6 +105,9 @@ func CheckComplexity(p CppParameter) error {
if strings.HasPrefix(p.ParameterType, "StringResult<") {
return ErrTooComplex // e.g. qcborstreamreader.h
}
if strings.HasPrefix(p.ParameterType, "QGenericMatrix<") {
return ErrTooComplex // e.g. qmatrix4x4.h
}
if strings.HasPrefix(p.ParameterType, "std::initializer") {
return ErrTooComplex // e.g. qcborarray.h
}