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

Delete dangling source info from macro expansion #934

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

jcking
Copy link
Collaborator

@jcking jcking commented Apr 26, 2024

When checking if something is a regular call or macro in the parser, we reserve an ID ahead of time and associate location information with it. When the call turns out to be a macro, the ID becomes unused but the source information is left. This change introduces logic to remove the excess information and potentially re-use the ID if we can.

Signed-off-by: Justin King <[email protected]>
Signed-off-by: Justin King <[email protected]>
@jcking jcking merged commit cbe072e into google:master Apr 26, 2024
2 checks passed
@jcking jcking deleted the parser-expand-macro-id branch April 26, 2024 20:51
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.

2 participants