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 696276 - Nested \if don't work in all cases
Nested \if don't work in all cases
Status: RESOLVED DUPLICATE of bug 678436
Product: doxygen
Classification: Other
Component: general
1.8.3.1
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-03-21 11:39 UTC by viric
Modified: 2014-04-19 16:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description viric 2013-03-21 11:39:09 UTC
In a nested \if, if the first if doesn't match, the nesting isn't properly parsed.

Example document:
---------------
/**
\mainpage

Test
*/

/**
\if DOCUMENT_A
\page Page1 Page 1

\if DOCUMENT_B
Test text 1
\endif

Test text 2
\endif
*/

/**
\page Page2 Page 2
 
Test text 3
 
*/
---------------

Using ENABLED_SECTIONS = B, doxygen generates only the Page 2, but Page 2 contains the strings:
Test text 2  <=== This shouldn't be there!
Test text 3
Comment 1 viric 2013-03-21 11:44:12 UTC
This also happens in 1.8.1, if I've tested right.
Comment 2 albert 2014-04-17 11:49:08 UTC
I tested this with version 1.8.6 and the problem is still present. In the current git version it is not present anymore (due to bug_678436 ?)

I suggest to set this bug to ASSIGNED (i.e. RESOLVED in the next doxygen version).
Comment 3 Dimitri van Heesch 2014-04-19 16:59:51 UTC

*** This bug has been marked as a duplicate of bug 678436 ***