mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Diagnostics] Add -diagnostic-style=(llvm|swift) to control printed output
This default formatting style remains the same "LLVM style". "Swift style" is what was previously enabled via -enable-experimental-diagnostic-formatting
This commit is contained in:
@@ -2111,10 +2111,8 @@ int swift::performFrontend(ArrayRef<const char *> Args,
|
||||
PDC.setPrintEducationalNotes(
|
||||
Invocation.getDiagnosticOptions().PrintEducationalNotes);
|
||||
|
||||
// Temporarily stage the new diagnostic formatting style behind
|
||||
// -enable-descriptive-diagnostics
|
||||
if (Invocation.getDiagnosticOptions().EnableExperimentalFormatting)
|
||||
PDC.enableExperimentalFormatting();
|
||||
PDC.setFormattingStyle(
|
||||
Invocation.getDiagnosticOptions().PrintedFormattingStyle);
|
||||
|
||||
if (Invocation.getFrontendOptions().DebugTimeCompilation)
|
||||
SharedTimer::enableCompilationTimers();
|
||||
|
||||
Reference in New Issue
Block a user