Skip to content
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

Handle arbitrary number of * and & #61

Merged

Conversation

MarcelKoch
Copy link
Contributor

This PR enables parsing of arguments with more than two * or &. It also fixes the parsing of const qualified pointer. Previously, the parsing would accept const T const*, which is invalid C++ syntax (correct would be const T * const).

Additionally, it also allows parsing of default values that are using {...}. I can put that in a different PR if that would be easier to review.

This also fixes some tests, which had invalid C++ like `const T const*`.
Copy link
Contributor

@Letme Letme left a comment

Choose a reason for hiding this comment

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

Cool, this is like bugfix. I hope there is enough regression testing in the parser test case that we did not miss something.

@JasperCraeghs JasperCraeghs merged commit a976300 into sphinx-contrib:master Jan 21, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants