Skip to content

Doxygen doesn't correctly treat nested \if statements #9779

Closed
@StefanBattmer

Description

@StefanBattmer

Describe the bug
Parts of the documentation of the top level \if statement (enabled vis ENABLED_SECTIONS in the doxyfile) end up in the documentation. This is correct but parts from the \else statement end up being in the output as well. I did test this with 1.9.6 and even 1.8.10. Same result.

Expected behavior
Only the enabled stuff should end up being documented

Screenshots
IncorrectOutput

To Reproduce
I attached a version reproducing the effect. Removing BUILD_WITH_A from the ENABLED_SECTIONS results in correct output. This might be related to the fact that then only the \else branch is touched.

Version
1.9.6 but also 1.8.10

DoxygenIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions