Skip to content

Commit 4e58347

Browse files
committed
fixup! reword diagnostic; use GetDisplayNameForLanguageType
1 parent 7300143 commit 4e58347

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,15 +619,15 @@ static void SetupLangOpts(CompilerInstance &compiler,
619619
if (language_for_note != language)
620620
diagnostic_manager.AddDiagnostic(
621621
llvm::formatv(
622-
"Requested expression evaluation as '{0}' but fell back to '{1}'.",
623-
lldb_private::Language::GetNameForLanguageType(language),
624-
lldb_private::Language::GetNameForLanguageType(language_for_note))
622+
"Requested expression evaluation in '{0}' is not supported. Used '{1}' instead.",
623+
lldb_private::Language::GetDisplayNameForLanguageType(language),
624+
lldb_private::Language::GetDisplayNameForLanguageType(language_for_note))
625625
.str(),
626626
lldb::Severity::eSeverityInfo, DiagnosticOrigin::eDiagnosticOriginLLDB);
627627
else
628628
diagnostic_manager.AddDiagnostic(
629-
llvm::formatv("Requested expression evaluation as '{0}'",
630-
lldb_private::Language::GetNameForLanguageType(language))
629+
llvm::formatv("Requested expression evaluation as '{0}'.",
630+
lldb_private::Language::GetDisplayNameForLanguageType(language))
631631
.str(),
632632
lldb::Severity::eSeverityInfo, DiagnosticOrigin::eDiagnosticOriginLLDB);
633633

0 commit comments

Comments
 (0)