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) {