Warning fix for final destructor in directors
Fix suppression of final destructors used in director classes. Add testcase for final destructors in director classes.
This commit is contained in:
parent
cbae09f92f
commit
b9c4a84780
3 changed files with 11 additions and 0 deletions
|
|
@ -2200,7 +2200,9 @@ int Language::classDirector(Node *n) {
|
|||
Node *nodeType = Getattr(ni, "nodeType");
|
||||
if (Cmp(nodeType, "destructor") == 0 && GetFlag(ni, "final")) {
|
||||
String *classtype = Getattr(n, "classtype");
|
||||
SWIG_WARN_NODE_BEGIN(ni);
|
||||
Swig_warning(WARN_LANG_DIRECTOR_FINAL, input_file, line_number, "Destructor of director base class %s is marked as final.\n", classtype);
|
||||
SWIG_WARN_NODE_END(ni);
|
||||
Delete(vtable);
|
||||
Delete(using_protected_members_code);
|
||||
return SWIG_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue