Parsing comments from macro incorrectly
Gil Kalish <[email protected]> Wed, 9 Jan 2019 19:15:31 +0000
| Newsgroups | gmane.text.doxygen.general |
|---|---|
| Message-ID | <AM6PR0502MB388062E69A3020E6239B7EC3CD8B0@AM6PR0502MB3880.eurprd05.prod.outlook.com> |
Hello Doxygen users,
I'm using macros to define enums (and strings) in C:
#define GENERATE_ENUM(ENUM, STR) ENUM,
typedef enum action {
FOREACH_ACTION(GENERATE_ENUM)
} action_t;
#define FOREACH_ACTION(F) \
F(ACTION_1 = 1, "Action 1") \
F(ACTION_2 = 2 /**< Some Doxygen comment */, "Action 2") \
F(ACTION_3 = 3 /**< Some other Doxygen comment */, "Action 3") \
F(ACTION_MIN = ACTION_1, "") \
F(ACTION_MAX = ACTION_3, "")
I'm using doxygen 1.8.14 with MACRO_EXPANSION=YES in Doxifile (creating HTML output).
For some reason ACTION_3 is not being parsed correctly:
Enumerator
ACTION_1
ACTION_2
Some Doxygen comment GENERATE_ENUM (ACTION_3 = 3 /**< Some other Doxygen comment
ACTION_MIN
ACTION_MAX
Any idea how can I fix that so I will get ACTION_3 in the list with the matching comment?
Thanks.
_______________________________________________
Doxygen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-users