Skip to content

[c++] unable to expand recursive macro #8448

Closed
@ZSaberLv0

Description

@ZSaberLv0

To Reproduce
DoxygenTest.zip

the main code pasted here:

#define EMPTY(...)
#define NO_DEFAULT_PARAM() EMPTY
#define DEFAULT_PARAM(v) = v EMPTY

#define METHOD(name, def) \
    /** @brief doc for name */ \
    extern void name(int param def());

METHOD(f0, NO_DEFAULT_PARAM())
METHOD(f1, DEFAULT_PARAM(1))

use the above files, simply run doxygen, and the result:
image

Version
1.8.17 was the first release version that reproduce the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions