mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
genbindings: enforce AllowVirtualForClass at construction time
This commit is contained in:
parent
c36d14c540
commit
756086cd50
@ -27,6 +27,12 @@ func astTransformBlocklist(parsed *CppParsedHeader) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If this class is abstract, but we return !AllowVirtualForClass, then
|
||||||
|
// delete its constructors
|
||||||
|
if c.Abstract && !AllowVirtualForClass(c.ClassName) {
|
||||||
|
c.Ctors = nil
|
||||||
|
}
|
||||||
|
|
||||||
// Keep
|
// Keep
|
||||||
parsed.Classes[j] = c
|
parsed.Classes[j] = c
|
||||||
j++
|
j++
|
||||||
|
Loading…
Reference in New Issue
Block a user