[Doxygen-develop] [PATCH] Support for C++ comments next to arguments of macro function
Brought to you by:
dimitri
From: Christian S. <sch...@cr...> - 2017-12-10 18:36:41
|
Hi, please consider the attached patch for git, which allows code input like this to be processed correctly: #ifndef DECLARE_ENUM # define DECLARE_ENUM(type, ...) enum type { __VA_ARGS__ } #endif DECLARE_ENUM(Foo_t, foo1 = 0x000000001, ///< First comment. foo2 = 22, ///< Second comment. foo3 ); The current general behavior of dropping all new line characters on macro expansion is preserved. Accordingly those C++ comments are automatically rewritten as inline C comments instead. Best regards, Christian Schoenebeck |