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

Preprocessor: improve the macro parameter handling #537

Closed
ForNeVeR opened this issue Jan 29, 2024 · 0 comments · Fixed by #540
Closed

Preprocessor: improve the macro parameter handling #537

ForNeVeR opened this issue Jan 29, 2024 · 0 comments · Fixed by #540
Assignees
Labels
area:preprocessor Related to C preprocessor good-first-issue An issue considered simple enough for new contributors kind:feature New feature or request

Comments

@ForNeVeR
Copy link
Owner

ForNeVeR commented Jan 29, 2024

Our current preprocessor implementation has a somewhat vague block of code that parses the macro parameters. While the easy cases are handled correctly, certain complex ones are not.

See TODO[#537] in the code for my proposal on the improvement (look near CPreprocessor::ReplaceMacrosInLine), and make sure to enable back the corresponding test.

Also, I'm not sure the nested macros are currently processed properly. This is also in the scope of this task / proposal.

@ForNeVeR ForNeVeR added kind:feature New feature or request status:help-wanted Open for contributors area:preprocessor Related to C preprocessor good-first-issue An issue considered simple enough for new contributors labels Jan 29, 2024
@ForNeVeR ForNeVeR removed the status:help-wanted Open for contributors label Jan 30, 2024
@ForNeVeR ForNeVeR self-assigned this Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:preprocessor Related to C preprocessor good-first-issue An issue considered simple enough for new contributors kind:feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant