swig/Source/CParse
Vadim Zeitlin 4af2e95010 Stop mangling dtors of nested classes instead a template class
cparse_template_expand() incorrectly appended template parameters to all
destructor nodes it encountered during the tree traversal, including the
dtors of any nested classes.

This resulted in WARN_LANG_ILLEGAL_DESTRUCTOR warnings from
Language::destructorDeclaration() later and possibly other problems due
to not actually wrapping these dtors.

Fix this by explicitly checking if the dtor is a child or, to account
for %extend, a grandchild of the template node itself before appending
template parameters to it.

This commit is best viewed with "-w" (ignore whitespace changes) option
as it indents, without changing, a block of code.
2018-11-23 02:48:55 +01:00
..
cparse.h new_node refactor 2018-05-19 09:00:06 +01:00
cscanner.c Code formatting fixes in doxygen code 2018-05-25 07:56:39 +01:00
parser.y Nested structures in "C" mode symbol table fix 2018-08-14 21:25:35 +03:00
templ.c Stop mangling dtors of nested classes instead a template class 2018-11-23 02:48:55 +01:00
util.c new_node refactor 2018-05-19 09:00:06 +01:00