mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Diagnostics] Add InFlightDiagnostic::warnUntilSwiftVersion to limit the
diagnostic behavior to a warning until the specified language version. This helper can be used to stage in fixes for stricter diagnostics as warnings until the next major language version.
This commit is contained in:
@@ -451,6 +451,8 @@ void CompilerInstance::setUpDiagnosticOptions() {
|
||||
}
|
||||
Diagnostics.setDiagnosticDocumentationPath(
|
||||
Invocation.getDiagnosticOptions().DiagnosticDocumentationPath);
|
||||
Diagnostics.setLanguageVersion(
|
||||
Invocation.getLangOptions().EffectiveLanguageVersion);
|
||||
if (!Invocation.getDiagnosticOptions().LocalizationCode.empty()) {
|
||||
Diagnostics.setLocalization(
|
||||
Invocation.getDiagnosticOptions().LocalizationCode,
|
||||
|
||||
Reference in New Issue
Block a user