Skip to content

Spurious asterisk after preprocessing when using macros #11715

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

Merged
merged 1 commit into from
Aug 14, 2025

Conversation

albert-github
Copy link
Collaborator

When having something like:

typedef PACK(enum {
    ENUMA, /**< @brief The asterisk character at the beginning of the next line is not removed, but
            * becomes part of the documentation. */
}) my_enum_t;

and a PREDEFINED PACKthis leads to an*` in the output before the word "becomes. This is due to the, incorrect, joining of lines in case of a multi line block of comment.

This is based on the comment: #11708 (comment)

Example: example.tar.gz

When having something like:
```
typedef PACK(enum {
    ENUMA, /**< @brief The asterisk character at the beginning of the next line is not removed, but
            * becomes part of the documentation. */
}) my_enum_t;
```
and a `PREDEFINED `PACK` this leads to an `*` in the output before the word "becomes.
This is due to the, incorrect, joining of lines in case of a multi line block of comment.
yyextra->yyLineNr++;
outputChar(yyscanner,'\n');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this not cause the line numbers to get out of sync? (i.e. increasing yyLineNr without outputting a \n)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the linenumbers of the resulting preprocessing and they looked OK to me.

@doxygen doxygen merged commit e5c924d into doxygen:master Aug 14, 2025
14 checks passed
@albert-github albert-github added the fixed but not released Bug is fixed in github, but still needs to make its way to an official release label Aug 14, 2025
@albert-github albert-github deleted the feature/bug_spurious_asterisk branch August 14, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug C/C++ fixed but not released Bug is fixed in github, but still needs to make its way to an official release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants