From 7f2e4d07df34dae421c0ed232a252423c1a52f93 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 23 Nov 2024 19:34:38 +1300 Subject: [PATCH] genbindings/config: prevent some classes from subclassing --- cmd/genbindings/config-allowlist.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cmd/genbindings/config-allowlist.go b/cmd/genbindings/config-allowlist.go index 9c124e3c..2273cb28 100644 --- a/cmd/genbindings/config-allowlist.go +++ b/cmd/genbindings/config-allowlist.go @@ -211,6 +211,20 @@ func AllowVirtualForClass(className string) bool { return false } + // Pure virtual method futureInterface() returns an unprojectable template type + if className == "QFutureWatcherBase" { + return false + } + + // Pure virtual dtor (should be possible to support) + if className == "QObjectData" { + return false + } + + if className == "QAccessibleObject" { + return false // undefined reference to `vtable for MiqtVirtualQAccessibleObject' + } + return true }