[Doxygen-develop] [PATCH] xmlgen doesnt pass function argument documentation through
Brought to you by:
dimitri
From: Cormac T. <ct...@ct...> - 2002-10-25 01:32:02
|
Hi, I noticed that xml generation doesn't pass function argument documentation through, unlike html generation. I patched xmlgen.cpp (v1.2.18) to support this (adds a <briefdescription> tag for the argument comment). Note that I looked at this code for the first time today, so I don't have 100% confidence that I'm doing the right thing(tm). But it works for me. The patch would need to be reviewed by someone else though before inclusion. At least it's tiny ;-) Thanks, --Cormac Twomey C:\Foo>diff -c v1.2.18\xmlgen.cpp xmlgen.cpp *** v1.2.18\xmlgen.cpp Sun Sep 15 12:22:50 2002 --- xmlgen.cpp Thu Oct 24 17:51:20 2002 *************** *** 1441,1446 **** --- 1441,1453 ---- linkifyText(TextGeneratorXMLImpl(t),scopeName,md->name(),a->defval); t << "</defval>" << endl; } + if (defArg && defArg->hasDocumentation()) + { + t << " <briefdescription>"; + writeXMLDocBlock(t,md->getDefFileName(),md->getDefLine(),scopeName,md,defArg->docs); + t << "</briefdescription>" << endl; + } t << " </param>" << endl; if (defArg) ++defAli; } |