Skip to content

Fix quadratic Doxygen lookahead on single-line declarations - #164

Merged
virtuald merged 1 commit into
mainfrom
fix/doxygen-lookahead-parser-reorder
Jul 20, 2026
Merged

Fix quadratic Doxygen lookahead on single-line declarations#164
virtuald merged 1 commit into
mainfrom
fix/doxygen-lookahead-parser-reorder

Conversation

@virtuald

Copy link
Copy Markdown
Member

Limit trailing-comment scans to the immediate declaration boundary instead of repeatedly rebuilding the remaining token buffer. Reorder enum initializer parsing so trailing comments are collected after the value is consumed, preserving Doxygen behavior while restoring linear parsing for variables, fields, comma-separated declarators, and enumerators.

Limit trailing-comment scans to the immediate declaration boundary instead
of repeatedly rebuilding the remaining token buffer. Reorder enum initializer
parsing so trailing comments are collected after the value is consumed,
preserving Doxygen behavior while restoring linear parsing for variables,
fields, comma-separated declarators, and enumerators.
@virtuald
virtuald force-pushed the fix/doxygen-lookahead-parser-reorder branch from 7848e99 to eb4aad1 Compare July 20, 2026 05:15
@virtuald
virtuald merged commit e92ffb0 into main Jul 20, 2026
4 checks passed
@virtuald
virtuald deleted the fix/doxygen-lookahead-parser-reorder branch July 20, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant