Skip to content

Commit 4d163ed

Browse files
committed
[lldb] Support for -print-diagnostic-groups
1 parent 80d178d commit 4d163ed

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
@@ -1890,8 +1890,7 @@ void SwiftASTContext::ApplyWorkingDir(
18901890

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

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

0 commit comments

Comments
 (0)