After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 658038 - [PATCH] preprocessor bug: using quote in macros, @ becomes @@
[PATCH] preprocessor bug: using quote in macros, @ becomes @@
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2011-09-02 08:40 UTC by matsu
Modified: 2012-11-18 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pre.l.patch (555 bytes, patch)
2011-09-02 08:40 UTC, matsu
none Details | Review

Description matsu 2011-09-02 08:40:27 UTC
Created attachment 195457 [details] [review]
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.
Comment 1 Dimitri van Heesch 2011-10-13 18:26:37 UTC
Good catch! I'll include the patch in the next subversion update.
Comment 2 Dimitri van Heesch 2011-12-03 18:22:54 UTC
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.