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

Add server command pre_files #740

Merged
merged 3 commits into from
Aug 9, 2022
Merged

Add server command pre_files #740

merged 3 commits into from
Aug 9, 2022

Conversation

sim642
Copy link
Member

@sim642 sim642 commented May 19, 2022

Closes #739.

This is on top of #391, because that's where #625 went. On master the server always immediately preprocesses, parses and merges the file, so this isn't actually needed there.

Even the full parsing is a bit excessive for this, but we need to do it because we use the same CIL parsing to collect all the files from preprocessor pragma locations. This could be optimized further by having a special parser for just those that ignores the actual C code, but that would be too premature for now.

@sim642 sim642 requested a review from karoliineh May 19, 2022 15:08
@sim642 sim642 linked an issue May 20, 2022 that may be closed by this pull request
Copy link
Member

@michael-schwarz michael-schwarz left a comment

Choose a reason for hiding this comment

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

LGTM!

@michael-schwarz
Copy link
Member

@karoliineh Can you have a look so we can merge this?

@sim642
Copy link
Member Author

sim642 commented Aug 9, 2022

I'll just merge this because the GobPie features it was intended for aren't a priority right now.

@sim642 sim642 merged commit 712e5dd into interactive Aug 9, 2022
@sim642 sim642 deleted the issue-739 branch August 9, 2022 07:26
@sim642 sim642 mentioned this pull request Aug 9, 2022
5 tasks
@sim642 sim642 added this to the v2.0.0 milestone Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server mode command for just preprocessing to get files list
2 participants