After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577005 - nested \defgroup commands do not work correctly
nested \defgroup commands do not work correctly
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.5.8-SVN
Other All
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-03-27 18:38 UTC by Matthias Ihrke
Modified: 2010-06-15 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
doxyfile used to produce the bug (9.59 KB, text/plain)
2009-03-27 18:40 UTC, Matthias Ihrke
Details

Description Matthias Ihrke 2009-03-27 18:38:29 UTC
Please describe the problem:
I use an own file to define the structure of modules using multiple nested \defgroup's. In the headerfiles, I only use \addtogroup \ingroup or \weakgroup to add function definitions to the appropriate module.

The resulting module hierarchy is not correct, even in a minimal example where only one file is present:

/**
 \defgroup b B
 \{
    \defgroup c C
	 \{
	    \defgroup d D
		 \defgroup e E
	 \}
	 \defgroup f F
 \}
*/

Running doxygen on this example (latest SVN version), gives a Module-page with the following hierachy:

    * A
          o B
                + C 
          o D 
    * E 

both in HTML and LaTeX-output.
Obviously, E and D are misplaced, here.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Matthias Ihrke 2009-03-27 18:40:25 UTC
Created attachment 131514 [details]
doxyfile used to produce the bug

Sorry, I mixed up the labels. In the file, it starts with 'B', in the result with 'a'.
Comment 2 skalimer0 2009-09-09 09:43:50 UTC
(In reply to comment #1)
> Created an attachment (id=131514) [details]
> doxyfile used to produce the bug
> 
> Sorry, I mixed up the labels. In the file, it starts with 'B', in the result
> with 'a'.

I Have the same problem 
if i include my file where all groups are created like this :

* \defgroup IdA title A
* @{
* \defgroup IdB title B
* \defgroup IdC title C
* @}
* \defgroup IdD title D

in my generated documentation i have the group IdC between the group IdA and IdD

For summary, i want :

IdA
   IdB
   IdC
IdD

I have, for now :

IdA
   IdB
IdC
IdD
Comment 3 skalimer0 2009-09-09 09:46:19 UTC
I use doxygen 1.6.1 and i have the same problem since 1.4.7 (first i used)
Comment 4 Matthias Ihrke 2010-06-11 08:46:33 UTC
Is anything going to happen to this bug?
It produces the same result with the latest svn-version.
Comment 5 Dimitri van Heesch 2010-06-11 11:10:57 UTC
Hi Matthias,

Thanks for bringing this to my attention again. I'll correct the probelm in the next release.
Comment 6 Matthias Ihrke 2010-06-11 11:23:45 UTC
Great! This will help me a lot. I used the grouping feature quite excessively and was a bit disappointed about the result :-)

Thanks a lot for the great piece of software!
Comment 7 Dimitri van Heesch 2010-06-15 11:21:46 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.0. 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.