[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 4 17:39:53 PDT 2024
================
@@ -3180,15 +3180,24 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
if ((result.Succeeded() &&
io_handler.GetFlags().Test(eHandleCommandFlagPrintResult)) ||
io_handler.GetFlags().Test(eHandleCommandFlagPrintErrors)) {
- // Display any STDOUT/STDERR _prior_ to emitting the command result text
GetProcessOutput();
+ // Display any inline diagnostics first.
+ if (!result.GetImmediateErrorStream() &&
+ GetDebugger().GetShowInlineDiagnostics() &&
+ line.find('\n') == std::string::npos) {
----------------
adrian-prantl wrote:
In a multiline expression for example.
https://github.com/llvm/llvm-project/pull/110901
More information about the lldb-commits
mailing list