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

Fix #363 incorrect AST when parsing offsetof #364

Merged
merged 1 commit into from
Mar 3, 2020
Merged

Fix #363 incorrect AST when parsing offsetof #364

merged 1 commit into from
Mar 3, 2020

Conversation

huzecong
Copy link
Contributor

This PR addresses #363, where parsing offsetof expressions generates incorrect ASTs.

The main change is eliminating the duplicate ID node constructed in p_offsetof_member_designator. New tests are added to check the entire structure of parsed StructRef and ArrayRef nodes in an offsetof expression.

@eliben
Copy link
Owner

eliben commented Feb 28, 2020

Thanks for the contribution, and apologies for the delay. I've been very busy lately, and expect to have some time for pycparser in the next few weeks.

@eliben eliben merged commit 67f545d into eliben:master Mar 3, 2020
@huzecong huzecong deleted the fix-offsetof branch March 3, 2020 17:35
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.

None yet

2 participants