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

Remove pp and handle continuations #56

Merged
merged 2 commits into from
Aug 19, 2023

Conversation

virtuald
Copy link
Member

Restructure preprocessor support

  • Remove partial support for #define and other PP directives
  • Allow pragma to span multiple lines
  • Pragma now emits a list of tokens instead of a single string

Hopefully by emitting a specific error message this will result in a lot fewer bug reports?

Discard line continuations

@virtuald virtuald force-pushed the remove-pp-and-handle-continuations branch 2 times, most recently from b771dff to c0bb443 Compare July 23, 2023 21:11
cxxheaderparser/lexer.py Outdated Show resolved Hide resolved
cxxheaderparser/lexer.py Show resolved Hide resolved
- Remove partial support for #define and other PP directives
- Allow pragma to span multiple lines
- Pragma now emits a list of tokens instead of a single string
- Ignore #warning directive if present
@virtuald virtuald force-pushed the remove-pp-and-handle-continuations branch from c0bb443 to bd9907a Compare August 19, 2023 23:42
@virtuald virtuald merged commit 6ab0d00 into main Aug 19, 2023
24 checks passed
@virtuald virtuald deleted the remove-pp-and-handle-continuations branch August 19, 2023 23:45
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.

[PARSE BUG]: Line continuations are not considered
2 participants