diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-12-03 01:10:28 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-12-03 09:49:42 +0000 |
commit | 24f75aa481aa98aa0ed52e71493c9ca4e63122ea (patch) | |
tree | b7ba680ebfb39ae158e80638b71da9a268b26c9e /Examples | |
parent | 1cdeb458ded5a931c8f8cbdb1aded4a46a6fb57b (diff) | |
download | swig-24f75aa481aa98aa0ed52e71493c9ca4e63122ea.tar.gz |
Fix parsing of unconventional Doxygen post comments for enum items.
Closes #1715
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/test-suite/doxygen_misc_constructs.i | 25 | ||||
-rw-r--r-- | Examples/test-suite/java/doxygen_misc_constructs_runme.java | 38 |
2 files changed, 61 insertions, 2 deletions
diff --git a/Examples/test-suite/doxygen_misc_constructs.i b/Examples/test-suite/doxygen_misc_constructs.i index 9cf95de39..e77edc7fb 100644 --- a/Examples/test-suite/doxygen_misc_constructs.i +++ b/Examples/test-suite/doxygen_misc_constructs.i @@ -95,13 +95,36 @@ class ClassWithNestedEnum { public: /** - * Enum description. + * ENested description. */ typedef enum {ONE, ///< desc of one TWO, ///< desc of two THREE ///< desc of three } ENested; + /** + * ENestedOdd description. + */ + typedef enum {ODD_ONE ///< desc of odd_one + ,ODD_TWO ///< desc of odd_two + ,ODD_THREE ///< desc of odd_three + } ENestedOdd; + + /** + * ENestedOddPartial1 description. + */ + typedef enum {ODD_PARTIAL1_ONE + ,ODD_PARTIAL1_TWO ///< desc of odd_partial1_two + ,ODD_PARTIAL1_THREE ///< desc of odd_partial1_three + } ENestedOddPartial1; + + /** + * ENestedOddPartial3 description. + */ + typedef enum {ODD_PARTIAL3_ONE ///< desc of odd_partial3_one + ,ODD_PARTIAL3_TWO ///< desc of odd_partial3_two + ,ODD_PARTIAL3_THREE + } ENestedOddPartial3; }; /// @return This is a bad place for this tag, but it should be ignored. diff --git a/Examples/test-suite/java/doxygen_misc_constructs_runme.java b/Examples/test-suite/java/doxygen_misc_constructs_runme.java index cae2b2192..9d629579f 100644 --- a/Examples/test-suite/java/doxygen_misc_constructs_runme.java +++ b/Examples/test-suite/java/doxygen_misc_constructs_runme.java @@ -97,7 +97,7 @@ public class doxygen_misc_constructs_runme { "\n"); wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENested", - " Enum description.\n" + + " ENested description.\n" + "\n"); wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENested.ONE", @@ -109,6 +109,42 @@ public class doxygen_misc_constructs_runme { wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENested.THREE", " desc of three\n"); + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOdd", + " ENestedOdd description.\n" + + "\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOdd.ODD_ONE", + " desc of odd_one\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOdd.ODD_TWO", + " desc of odd_two\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOdd.ODD_THREE", + " desc of odd_three\n"); + + wantedComments.put("doxygen_misc_constructs.StructWithReturnComment", + " @return This is a bad place for this tag, but it should be ignored."); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOddPartial1", + " ENestedOddPartial1 description.\n" + + "\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOddPartial1.ODD_PARTIAL1_THREE", + " desc of odd_partial1_three\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOddPartial1.ODD_PARTIAL1_TWO", + " desc of odd_partial1_two\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOddPartial3", + " ENestedOddPartial3 description.\n" + + "\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOddPartial3.ODD_PARTIAL3_ONE", + " desc of odd_partial3_one\n"); + + wantedComments.put("doxygen_misc_constructs.ClassWithNestedEnum.ENestedOddPartial3.ODD_PARTIAL3_TWO", + " desc of odd_partial3_two\n"); + wantedComments.put("doxygen_misc_constructs.StructWithReturnComment", " @return This is a bad place for this tag, but it should be ignored."); |