GNOME Bugzilla – Bug 722603
doxygen nested \if \endif sample not working
Last modified: 2014-04-22 09:55:09 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.
Backward reference: http://stackoverflow.com/questions/21115381/doxygen-nested-if-endif-sample-not-working
Confirmed. Should be fixed in the next GIT update.
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).
I've quickly tested the sample from above with doxygen v1.8.7 and it works as expected now.