Skip to content

Commit c0b51fe

Browse files
authored
Merge pull request #9240 from DmT021/wp/print-diagnostic-groups
[lldb] Support for -print-diagnostic-groups
2 parents df110cd + 4d163ed commit c0b51fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,8 +1891,7 @@ void SwiftASTContext::ApplyWorkingDir(
18911891

18921892
void SwiftASTContext::ApplyDiagnosticOptions() {
18931893
const auto &opts = GetCompilerInvocation().getDiagnosticOptions();
1894-
if (opts.PrintDiagnosticNames)
1895-
GetDiagnosticEngine().setPrintDiagnosticNames(true);
1894+
GetDiagnosticEngine().setPrintDiagnosticNamesMode(opts.PrintDiagnosticNames);
18961895

18971896
if (!opts.DiagnosticDocumentationPath.empty())
18981897
GetDiagnosticEngine().setDiagnosticDocumentationPath(

0 commit comments

Comments
 (0)