-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SwiftCompiler/Regex] Use bridged DiagnosticEngine for error reporting #42583
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
Conversation
956d551
to
7ef26c7
Compare
2498649
to
cc6632b
Compare
|
||
#else // canImport(_CompilerRegexParser) | ||
|
||
#warning("Regex parsing is disabled") |
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.
Nice!
9c6d6c6
to
3710a3f
Compare
swiftlang/swift-experimental-string-processing#328 |
swiftlang/swift-experimental-string-processing#328 |
This fixes: * An issue where the diagnostic messages were leaked * Diagnose at correct position inside the regex literal To do this: * Introduce 'Parse' SwiftCompiler module that is a bridging layer between '_CompilerRegexParser' and C++ libParse * Move libswiftParseRegexLiteral and libswiftLexRegexLiteral to 'Parse' Also this change makes 'SwiftCompilerSources/Package.swift' be configured by CMake so it can actually be built with 'swift-build'. rdar://92187284
3710a3f
to
79bbbf1
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
Added a commit to resolve a Actual failurehttps://ci.swift.org/view/Pull%20Requests/job/swift-PR-Linux/1445/console
|
This fixes:
For that:
Parse
SwiftCompiler module that is a bridging layer between_CompilerRegexParser
and C++ libParselibswiftParseRegexLiteral
andlibswiftLexRegexLiteral
from_CompilerRegexParser
toParse
Also this change makes
SwiftCompilerSources/Package.swift
be configured by CMake so it can actually be built withswift-build
.rdar://92187284