Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doxygen nested \if \endif sample not working (Origin: bugzilla #722603) #5408

Closed
doxygen opened this issue Jul 2, 2018 · 0 comments
Closed

Comments

@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status VERIFIED severity normal in component general for ---
Reported in version 1.8.6 on platform Other
Assigned to: Dimitri van Heesch

On 2014-01-20 14:09:55 +0000, Al Fish wrote:

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.

On 2014-01-20 14:20:11 +0000, Al Fish wrote:

Backward reference: http://stackoverflow.com/questions/21115381/doxygen-nested-if-endif-sample-not-working

On 2014-02-11 20:50:15 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2014-04-21 10:09:13 +0000, Dimitri van Heesch wrote:

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).

On 2014-04-22 09:55:09 +0000, Al Fish wrote:

I've quickly tested the sample from above with doxygen v1.8.7 and it works as expected now.

@doxygen doxygen closed this as completed Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant