Suppress incorrect warning when a keyword is used in template classes

Closes https://github.com/swig/swig/issues/845
This commit is contained in:
William S Fulton 2016-12-20 19:37:21 +00:00
commit e6b270b6dc
5 changed files with 116 additions and 3 deletions

View file

@ -799,6 +799,8 @@ static int need_name_warning(Node *n) {
need = 0;
} else if (Getattr(n, "templatetype")) {
need = 0;
} else if (GetFlag(n, "parsing_template_declaration")) {
need = 0;
}
return need;
}