Lines Matching +full:- +full:- +full:requested +full:- +full:by
1 //===-- CommandObjectDWIMPrint.cpp ------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
22 #include "lldb/lldb-defines.h"
23 #include "lldb/lldb-enumerations.h"
24 #include "lldb/lldb-forward.h"
34 : CommandObjectRaw(interpreter, "dwim-print",
36 "dwim-print [<variable-name> | <expression>]",
45 StringRef exclude_expr_options[] = {"debug", "top-level"};
99 language = frame->GuessLanguage().AsLanguageType();
101 // Add a hint if object description was requested, but no description
105 // Objective-C
107 // - Start with "<".
108 // - Followed by 1 or more non-whitespace characters.
109 // - Followed by ": 0x".
110 // - Followed by 5 or more hex digits.
111 // - Followed by ">".
112 // - End with zero or more whitespace characters.
125 "object description requested, but type doesn't implement "
132 // Dump `valobj` according to whether `po` was requested or not.
159 // arrow operator (`->`) or the subscript operator (`[]`). This is because
163 expr.find_first_of("*&->[]") == StringRef::npos;
167 auto valobj_sp = frame->GetValueForVariableExpressionPath(
171 if (valobj_sp && status.Success() && valobj_sp->GetError().Success()) {
173 if (auto persisted_valobj = valobj_sp->Persist())
193 if (auto var_sp = state->GetVariable(expr))
194 if (auto valobj_sp = var_sp->GetValueObject()) {
219 // Only mention Fix-Its if the expression evaluator applied them.
220 // Compiler errors refer to the final expression after applying Fix-It(s).
223 error_stream << " Evaluated this expression after applying Fix-It(s):\n";
230 result.SetError(valobj_sp->GetError().Clone());
244 if (valobj_sp->GetError().GetError() != UserExpression::kNoResult)
251 target.GetPersistentVariable(valobj_sp->GetName())) {
252 auto language = valobj_sp->GetPreferredDisplayLanguage();
255 persistent_state->RemovePersistentVariable(result_var_sp);