genbindings: blocklist QHashSeed::size_t

This commit is contained in:
mappu 2025-01-11 17:40:38 +13:00
parent d7c019b2a7
commit f15c54b153

View File

@ -301,6 +301,14 @@ func AllowMethod(className string, mm CppMethod) error {
return ErrTooComplex
}
if className == "QHashSeed" && mm.MethodName == "operator unsigned long" {
// Not present in Qt 5, is present in Qt 6.4 and 6.8, but in the C++
// header file it is written as `operator size_t()`
// Clang is early-converting size_t to unsigned long, which is invalid for mingw-w64-x86_64 platforms
// A proper fix here would be to avoid evaluating typedefs
return ErrTooComplex
}
return nil // OK, allow
}