Ensure doxygen comments are copied to overloaded function nodes.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Jamie Kirkpatrick 2008-09-12 11:19:53 +00:00
commit 0f41d25c09

View file

@ -1364,6 +1364,10 @@ static void default_arguments(Node *n) {
Delete(pl); Delete(pl);
} }
/* copy doxygen comments if found */
if(Getattr(function,"DoxygenComment"))
Setattr(new_function,"DoxygenComment",Getattr(function,"DoxygenComment"));
/* copy specific attributes for global (or in a namespace) template functions - these are not templated class methods */ /* copy specific attributes for global (or in a namespace) template functions - these are not templated class methods */
if (strcmp(cntype,"template") == 0) { if (strcmp(cntype,"template") == 0) {
Node *templatetype = Getattr(function,"templatetype"); Node *templatetype = Getattr(function,"templatetype");