mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 09:28:36 +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
|
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
|
var mm CppMethod
|
||||||
err := parseMethod(node, &mm)
|
err := parseMethod(node, &mm)
|
||||||
@ -145,6 +149,11 @@ nextMethod:
|
|||||||
continue // Skip private/protected
|
continue // Skip private/protected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if this is `= delete`
|
||||||
|
if explicitlyDeleted, ok := node["explicitlyDeleted"].(bool); ok && explicitlyDeleted {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Method
|
// Method
|
||||||
methodName, ok := node["name"].(string)
|
methodName, ok := node["name"].(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user