Skip to content

[C++] stall on preprocessing macro with a comment including an apostrophe (Origin: bugzilla #690629) #5001

@doxygen

Description

@doxygen

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

Original attachment names and IDs:

On 2012-12-21 23:55:46 +0000, Wilfred Mott wrote:

Created attachment 232100
Testcase

I stumbled on it while trying to generate docs for Firefox, here's a minimized testcase:


[a.cpp]

#include "a.h"

#define N(f)

enum e {
#define M N
#include "a.h"
};


[a.h]

#define M

M(
A |
//'
B
)

#undef M


With MACRO_EXPANSION enabled (all other settings are default), this example causes Doxygen 1.8.2 to stall on preprocessing a.cpp (100% core usage, runs infinitely).

OS: Windows 7 SP1

On 2012-12-22 10:50:02 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next release.

On 2012-12-26 16:09:07 +0000, Dimitri van Heesch wrote:

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

On 2012-12-27 00:43:13 +0000, Wilfred Mott wrote:

Verified fixed in doxygen 1.8.3. Thanks, Dimitri!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions