[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 3 10:48:01 PDT 2024


================
@@ -188,12 +188,14 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
     ValueObjectSP valobj_sp;
     std::string fixed_expression;
 
+    result.SetUserInput(expr);
----------------
jimingham wrote:

This is at least an oddly named API, since it's not at all what the user input.  For instance, I might very well have run:

dwim-print -a 1 -l swift -- some expression

but this API is going to claim "some expression" is the user input.

https://github.com/llvm/llvm-project/pull/110901


More information about the lldb-commits mailing list