GNOME Bugzilla – Bug 712743
INLINE_GROUPED_CLASSES, INLINE_SIMPLE_STRUCTS can break XML in tagfile
Last modified: 2014-12-25 16:03:28 UTC
Created attachment 260311 [details] Example project with failure The tagfile generated by Doxygen has broken XML if you document a struct in a module group and set either one of or both of the options INLINE_GROUPED_CLASSES and INLINE_SIMPLE_STRUCTS to YES. It looks as though the <compound kind="struct"> elements are not output correctly -- information about their members seems to be missing and the closing tags are missing. In the attached project, both options are set to YES, and this gives the following output: ... <compound kind="group"> <name>some_group</name> ... <compound kind="struct"> <name>struct1</name> <filename>group__some__group.html</filename> <anchor>structstruct1</anchor> <compound kind="struct"> <name>struct2</name> <filename>group__some__group.html</filename> <anchor>structstruct2</anchor> <compound kind="struct"> <name>struct3</name> <filename>group__some__group.html</filename> <anchor>structstruct3</anchor> <compound kind="struct"> <name>struct4</name> <filename>group__some__group.html</filename> <anchor>structstruct4</anchor> <!-- What kind does the following tag close? --> </compound> <compound kind="page"> <name>index</name> <title></title> <filename>index</filename> <docanchor file="index" title="Introduction">intro</docanchor> </compound> </tagfile> For comparison, if both configs are set to NO, the XML for a struct looks like: <compound kind="struct"> <name>struct2</name> <filename>structstruct2.html</filename> <member kind="variable"> <type>int *</type> <name>member4</name> <anchorfile>structstruct2.html</anchorfile> <anchor>a572a6b2ef8ce6d8c5386d51a14784026</anchor> <arglist></arglist> </member> <member kind="variable"> <type>char *</type> <name>member5</name> <anchorfile>structstruct2.html</anchorfile> <anchor>a84a4fcc0ce38c81894a5015cc7d5bd20</anchor> <arglist></arglist> </member> </compound>
Experiencing the same issue with Doxygen 1.8.8 under Win 7 Professional. I could verify the given example code with the same results (incorrect tagfile if either INLINE_SIMPLE_STRUCTS or INLINE_GROUPED_CLASSES or both are set). The problem also occurs for ungrouped structs (then thy are only affected by INLINE_SIMPE_STRUCTS=YES). I appended another example to illustrate this.
Created attachment 285934 [details] Another example that generates invalid tagfiles. 'example.h' contains only a single struct that isn't grouped. When enabling INLINE_SIMPLE_STRUCTS, Doxygen generates an invalid tagfile. 'example2.h' triggers the same issue with either INLINE_SIMPLE_STRUCTS or INLINE_GROUPED_CLASSES or both.
Confirmed. Should be fixed by this commit: https://github.com/doxygen/doxygen/commit/b9ad9a03cf4febeb2aa10ddca22c1c9296c5223b Please let me know if you still see issues.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.9. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferrably in the form of a self-contained example).