Apply patch SF #335 - Truly ignore constructors in directors with %ignore and correct testcase that tests this

This commit is contained in:
William S Fulton 2013-01-29 06:55:22 +00:00
commit 38f37ef5ae
3 changed files with 40 additions and 15 deletions

View file

@ -1995,6 +1995,9 @@ int Language::classDirectorConstructors(Node *n) {
for (ni = Getattr(n, "firstChild"); ni; ni = nextSibling(ni)) {
nodeType = Getattr(ni, "nodeType");
if (Cmp(nodeType, "constructor") == 0) {
if (GetFlag(ni, "feature:ignore"))
continue;
Parm *parms = Getattr(ni, "parms");
if (is_public(ni)) {
/* emit public constructor */