Skip to content

[IDE] Pass LangOptions to ide::isSourceInputComplete #77072

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

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

hamishknight
Copy link
Contributor

Ensure we account for things like the enablement of bare slash regex literals.

Resolves swiftlang/llvm-project#9430

@hamishknight hamishknight changed the title [Parse] Pass LangOptions to ide::isSourceInputComplete [IDE] Pass LangOptions to ide::isSourceInputComplete Oct 17, 2024
`swift-indent` has already been removed, this code
is unused.
Providing these is a bit of a layering violation,
the parser shouldn't care about these options (there
does seem to be one current use of `TypeCheckerOpts`
in the parser for designated operator types, but
that's a legacy feature that was never officially
supported).
Ensure we account for things like the enablement
of bare slash regex literals.
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated change that made it into the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's something I happened to notice when changing ParserUnit, I could put it in a separate PR, but then I'd have to rebase one of them.

@hamishknight
Copy link
Contributor Author

swiftlang/llvm-project#9439

@swift-ci please test

@hamishknight hamishknight merged commit 499fe6d into swiftlang:main Oct 30, 2024
5 checks passed
@hamishknight hamishknight deleted the complete-options branch October 30, 2024 20:17
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.

LLDB doesn't pass through language options to ide::isSourceInputComplete
3 participants