From db9659c286f57be807f181a72afde6f1b55e6dba Mon Sep 17 00:00:00 2001 From: Dmitry Kabak Date: Mon, 16 Jul 2012 19:42:30 +0000 Subject: [PATCH] Implemented most of non-ignored doxygen commands translating for java, fixed testcase. The output is not really nice right now, but almost all the commands mentioned in the project plan work ok git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13327 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Devel/plan-gsoc-2012.txt | 4 +- Examples/test-suite/common.mk | 2 +- Examples/test-suite/doxygen_translate.i | 7 +- .../src/JavaDocConverter.cpp | 229 ++++++++++++------ .../DoxygenTranslator/src/JavaDocConverter.h | 54 ++++- 5 files changed, 203 insertions(+), 93 deletions(-) diff --git a/Doc/Devel/plan-gsoc-2012.txt b/Doc/Devel/plan-gsoc-2012.txt index a32878375..3750a27ca 100644 --- a/Doc/Devel/plan-gsoc-2012.txt +++ b/Doc/Devel/plan-gsoc-2012.txt @@ -92,7 +92,7 @@ Functionality \category - ignored, used only in Objective C \cite - translated to in JD, single quotes in PD \class - ignored (structural command) - \code - translated to in JD, ignored in PD + \code - translated to {@code ...} in JD, ignored in PD \cond - translated to 'Conditional comment: '. Later SWIG may support definitions of conditions in config file. \copybrief - ignored. Later SWIG may support this command by @@ -172,7 +172,7 @@ Functionality \namespace - included in package-info.java if nspace feature is enabled, otherwise ignored, ignored in PD \nosubgrouping - ignored - \note - ignored in JD, translated to 'Note:' in PD + \note - translated to 'Note:' in both JD and PD \overload - prints 'This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.' to the output in both JD and PD diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index ed2d74cd9..9f91cec8c 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -188,7 +188,7 @@ CPP_TEST_CASES += \ director_wombat \ disown \ doxygen_parsing \ - doxygen_basic_translate \ + doxygen_translate \ dynamic_cast \ empty \ enum_rename \ diff --git a/Examples/test-suite/doxygen_translate.i b/Examples/test-suite/doxygen_translate.i index 04f70f014..8bfd3d250 100644 --- a/Examples/test-suite/doxygen_translate.i +++ b/Examples/test-suite/doxygen_translate.i @@ -54,7 +54,7 @@ * This is printed if not * \endif * - * \image html testImage.bmp + * \image html testImage.bmp "Hello, world!" asd=10qwe * *