mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings: skip generation for =delete'd ctors
This commit is contained in:
parent
012b62ee06
commit
daa6252848
@ -120,6 +120,10 @@ nextMethod:
|
||||
continue // The bindings can't construct an abstract class
|
||||
}
|
||||
|
||||
// Check if this is `= delete`
|
||||
if explicitlyDeleted, ok := node["explicitlyDeleted"].(bool); ok && explicitlyDeleted {
|
||||
continue
|
||||
}
|
||||
|
||||
var mm CppMethod
|
||||
err := parseMethod(node, &mm)
|
||||
@ -145,6 +149,11 @@ nextMethod:
|
||||
continue // Skip private/protected
|
||||
}
|
||||
|
||||
// Check if this is `= delete`
|
||||
if explicitlyDeleted, ok := node["explicitlyDeleted"].(bool); ok && explicitlyDeleted {
|
||||
continue
|
||||
}
|
||||
|
||||
// Method
|
||||
methodName, ok := node["name"].(string)
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user