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
[Parse] Split incremental-extensions #65683
Conversation
The preprocessor `IncrementalProcessing` option was being used to control whether or not to teardown the lexer or run the end of translation unit action. In D127284 this was merged with `-fincremental-extensions`, which also changes top level parsing. Split these again so that the former behavior can be achieved without the latter (ie. to allow managing lifetime without also changing parsing). Resolves rdar://113406310.
Seems Swift wasn't the only project to run into this, eg. #62413 (comment). Any thoughts on cherry-picking this to the release branch as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give a few days for other people to look at it, otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Maybe we can cherry pick it for the patch release 17.0.1. If that’s a critical patch for swift we can try for the 17.0.0 release.
It's in the appropriate branches in our fork, so it's fine for us either way. I suggested it more because of #62413 than anything else. |
This reverts commit c95a0c9. llvm#65683 split `-fincremental-extensions` and `IncrementalProcessing` such that `IncrementalProcessing` can be used to extend the lifetime of various datastructures without parsing changes. LLDB really should not be parsing any differently to a regular compile, so switch back to using just `IncrementalProcessing`.
Re-applies llvm#65683 with a fix to always run `Actions.ActOnEndOfTranslationUnit` regardless of incremental processing.
The preprocessor `IncrementalProcessing` option was being used to control whether or not to teardown the lexer or run the end of translation unit action. In D127284 this was merged with `-fincremental-extensions`, which also changes top level parsing. Split these again so that the former behavior can be achieved without the latter (ie. to allow managing lifetime without also changing parsing). Resolves rdar://113406310.
Re-applies #65683 with a fix to always run `Actions.ActOnEndOfTranslationUnit` regardless of incremental processing.
The preprocessor
IncrementalProcessing
option was being used to control whether or not to teardown the lexer or run the end of translation unit action. In D127284 this was merged with-fincremental-extensions
, which also changes top level parsing.Split these again so that the former behavior can be achieved without the latter (ie. to allow managing lifetime without also changing parsing).
Resolves rdar://113406310.