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 722603 - doxygen nested \if \endif sample not working
doxygen nested \if \endif sample not working
Status: VERIFIED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.6
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-01-20 14:09 UTC by Al Fish
Modified: 2014-04-22 09:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Al Fish 2014-01-20 14:09:55 UTC
The nested if/endif sample seems not to work as expected:

http://www.stack.nl/~dimitri/doxygen/manual/commands.html#cmdif

It produces:

Unconditionally shown documentation. More text. Unconditional text.

But I would expect:

Unconditionally shown documentation. Unconditional text.

I tried several doxygen versions (also the currently latest v1.8.6). Does this sample work for anybody?

As a workaround I used:

  /*! Unconditionally shown documentation.
   *  \if Cond1
   *    Only included if Cond1 is set.
   *  \endif
   *  \if Cond2
   *    Only included if Cond2 is set.
   *  \endif
   *  \if (Cond2 && Cond3)
   *    Only included if Cond2 and Cond3 are set.
   *  \endif
   *  \if Cond2
   *    More text.
   *  \endif
   *  Unconditional text.
   */

But I would prefer to use the nested style from the original sample.
Comment 2 Dimitri van Heesch 2014-02-11 20:50:15 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 3 Dimitri van Heesch 2014-04-21 10:09:13 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.7. 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).
Comment 4 Al Fish 2014-04-22 09:55:09 UTC
I've quickly tested the sample from above with doxygen v1.8.7 and it works as expected now.