LLDB mainline
DumpValueObjectOptions.cpp
Go to the documentation of this file.
1//===-- DumpValueObjectOptions.cpp ----------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10
12
13using namespace lldb;
14using namespace lldb_private;
15
25
32
35 m_max_ptr_depth = {depth};
36 return *this;
37}
38
40DumpValueObjectOptions::SetMaximumDepth(uint32_t depth, bool is_default) {
41 m_max_depth = depth;
42 m_max_depth_is_default = is_default;
43 return *this;
44}
45
51
57
59 m_show_types = show;
60 return *this;
61}
62
67
69 // Reset these options to their default values.
71 SetHideRootType(false);
72 SetHideName(false);
73 SetHideValue(false);
74 SetShowSummary(true);
75 return *this;
76}
77
81 return *this;
82}
83
85 if (!show)
87 else
89 return *this;
90}
91
97
100 m_use_synthetic = use_synthetic;
101 return *this;
102}
103
108
110 m_flat_output = flat;
111 return *this;
112}
113
116 m_omit_summary_depth = depth;
117 return *this;
118}
119
121 m_ignore_cap = ignore;
122 return *this;
123}
124
135
140
143 m_summary_sp = summary;
144 return *this;
145}
146
149 if (name)
150 m_root_valobj_name.assign(name);
151 else
152 m_root_valobj_name.clear();
153 return *this;
154}
155
158 m_hide_root_type = hide_root_type;
159 return *this;
160}
161
164 m_hide_root_name = hide_root_name;
165 return *this;
166}
167
169 m_hide_name = hide_name;
170 return *this;
171}
172
174 m_hide_value = hide_value;
175 return *this;
176}
177
182
189
194
198 return *this;
199}
200
203 m_allow_oneliner_mode = oneliner;
204 return *this;
205}
206
210 return *this;
211}
212
216 return *this;
217}
218
222 return *this;
223}
224
DumpValueObjectOptions & SetFlatOutput(bool flat=false)
DumpValueObjectOptions & SetVariableFormatDisplayLanguage(lldb::LanguageType lang=lldb::eLanguageTypeUnknown)
DumpValueObjectOptions & SetHideName(bool hide_name=false)
DumpValueObjectOptions & SetShowTypes(bool show=false)
DumpValueObjectOptions & SetMaximumDepth(uint32_t depth, bool is_default)
DumpValueObjectOptions & SetHideRootType(bool hide_root_type=false)
std::function< bool(ConstString)> ChildPrintingDecider
std::function< bool(ConstString, ConstString, const DumpValueObjectOptions &, Stream &)> DeclPrintingHelper
DumpValueObjectOptions & SetSummary(lldb::TypeSummaryImplSP summary=lldb::TypeSummaryImplSP())
DumpValueObjectOptions & SetUseTypeDisplayName(bool dis=false)
DumpValueObjectOptions & SetUseSyntheticValue(bool use_synthetic=true)
DumpValueObjectOptions & SetRevealEmptyAggregates(bool reveal=true)
DumpValueObjectOptions & SetOmitSummaryDepth(uint32_t depth=0)
DumpValueObjectOptions & SetPointerAsArray(const PointerAsArraySettings &ptr_array)
DumpValueObjectOptions & SetUseObjectDescription(bool use=false)
DumpValueObjectOptions & SetHideRootName(bool hide_root_name)
DumpValueObjectOptions & SetDeclPrintingHelper(DeclPrintingHelper helper)
DumpValueObjectOptions & DisableObjectDescription()
DumpValueObjectOptions & SetChildPrintingDecider(ChildPrintingDecider decider)
DumpValueObjectOptions & SetRootValueObjectName(const char *name=nullptr)
DumpValueObjectOptions & SetUseDynamicType(lldb::DynamicValueType dyn=lldb::eNoDynamicValues)
DumpValueObjectOptions & SetFormat(lldb::Format format=lldb::eFormatDefault)
DumpValueObjectOptions & SetHidePointerValue(bool hide=false)
DumpValueObjectOptions & SetMaximumPointerDepth(uint32_t depth)
DumpValueObjectOptions & SetIgnoreCap(bool ignore=false)
DumpValueObjectOptions & SetScopeChecked(bool check=true)
DumpValueObjectOptions & SetAllowOnelinerMode(bool oneliner=false)
DumpValueObjectOptions & SetExpandPointerTypeFlags(unsigned flags)
DumpValueObjectOptions & SetShowSummary(bool show=true)
DumpValueObjectOptions & SetShowLocation(bool show=false)
DumpValueObjectOptions & SetHideValue(bool hide_value=false)
DumpValueObjectOptions & SetRunValidator(bool run=true)
DumpValueObjectOptions & SetElementCount(uint32_t element_count=0)
lldb::DynamicValueType GetDynamicValueType()
virtual bool IsSynthetic()
virtual lldb::LanguageType GetPreferredDisplayLanguage()
#define UINT32_MAX
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
Format
Display format definitions.
LanguageType
Programming language type.