Support doxygen \param[] commands
Recognize \param[in], \param[out], and \param[in,out]. Currently they
are all treated the same as \param, but the information is now
available for inclusion in the translated comments. This is done
using new utility functions getBaseCommand and getEndOfWordCommand,
which will also generalize to treatment of code command options,
e.g. \code{.py}. Preliminary treatment of the extended version of
\code is already in place in these functions.
Added examples of all three new \param commands to the
doxygen_translate_all_tags test and updated the python and java
expected output.
This commit is contained in:
parent
87bf8ae7aa
commit
eb11c025c7
7 changed files with 50 additions and 9 deletions
|
|
@ -104,7 +104,7 @@ public class doxygen_translate_all_tags_runme {
|
|||
" {@link someMember Some description follows }\n" +
|
||||
" This will only appear in man\n");
|
||||
|
||||
wantedComments.put("doxygen_translate_all_tags.doxygen_translate_all_tags.func07(int)",
|
||||
wantedComments.put("doxygen_translate_all_tags.doxygen_translate_all_tags.func07(int, int, int, int)",
|
||||
" Comment for <b>func07()</b>.\n" +
|
||||
" Note: Here \n" +
|
||||
" is the note! \n" +
|
||||
|
|
@ -115,7 +115,10 @@ public class doxygen_translate_all_tags_runme {
|
|||
" The paragraph text. \n" +
|
||||
" Maybe even multiline \n" +
|
||||
" </p>\n" +
|
||||
" @param a the first param\n");
|
||||
" @param a the first param\n" +
|
||||
" @param b parameter with intent(in)\n" +
|
||||
" @param c parameter with intent(out)\n" +
|
||||
" @param d parameter with intent(in,out)\n");
|
||||
|
||||
wantedComments.put("doxygen_translate_all_tags.doxygen_translate_all_tags.func08(int)",
|
||||
"<a id=\"someAnchor\"></a>\n" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue