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

[PATCH] preprocessor bug: using quote in macros, @ becomes @@ (Origin: bugzilla #658038) #4392

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

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

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

Original attachment names and IDs:

On 2011-09-02 08:40:27 +0000, matsu@users.sourceforge.net wrote:

Created attachment 195457
pre.l.patch

If quote charactor appears in macro, doxygen command charactor (@) following in the macro become twice (@@).

For example:

#define TEST
/*! @brief brief1 /
char func1() { return 'c'; }
/
! @brief brief2 */
char func2();

TEST

get the result:

Functions
char func1 ()
brief1
char func2 ()
@brief brief2

"doxygen -d preprocessor" produces following output.

00001
00002 #define TEST
00003
00004
00005
00006
00007
00008 /*! @brief brief1 / char func1() { return 'c'; } /! @@brief brief2 */ char func2();
00009

This bug is also happen using #arg.

Attached patch for src/pre.l fixes this bug.

On 2011-10-13 18:26:37 +0000, Dimitri van Heesch wrote:

Good catch! I'll include the patch in the next subversion update.

On 2011-12-03 18:22:54 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.6. 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.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment