From 0f41d25c0938566f4037fd117526f848009d3887 Mon Sep 17 00:00:00 2001 From: Jamie Kirkpatrick Date: Fri, 12 Sep 2008 11:19:53 +0000 Subject: [PATCH] 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 --- Source/CParse/parser.y | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 95bd8701d..06b0685c6 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -1363,6 +1363,10 @@ static void default_arguments(Node *n) { if (throws) Setattr(new_function,"throws",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 */ if (strcmp(cntype,"template") == 0) {