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
17 : m_summary_sp(), m_root_valobj_name(),
18 m_max_ptr_depth(PointerDepth{PointerDepth::Mode::Default, 0}),
19 m_decl_printing_helper(), m_child_printing_decider(),
20 m_pointer_as_array(), m_use_synthetic(true),
21 m_scope_already_checked(false), m_flat_output(false), m_ignore_cap(false),
22 m_show_types(false), m_show_location(false), m_use_objc(false),
23 m_hide_root_type(false), m_hide_root_name(false), m_hide_name(false),
24 m_hide_value(false), m_run_validator(false),
25 m_use_type_display_name(true), m_allow_oneliner_mode(true),
26 m_hide_pointer_value(false), m_reveal_empty_aggregates(true) {}
27
33}
34
37 m_max_ptr_depth = depth;
38 return *this;
39}
40
42DumpValueObjectOptions::SetMaximumDepth(uint32_t depth, bool is_default) {
43 m_max_depth = depth;
44 m_max_depth_is_default = is_default;
45 return *this;
46}
47
51 return *this;
52}
53
57 return *this;
58}
59
61 m_show_types = show;
62 return *this;
63}
64
66 m_show_location = show;
67 return *this;
68}
69
71 m_use_objc = use;
72 return *this;
73}
74
76 if (!show)
78 else
80 return *this;
81}
82
85 m_use_dynamic = dyn;
86 return *this;
87}
88
91 m_use_synthetic = use_synthetic;
92 return *this;
93}
94
97 return *this;
98}
99
101 m_flat_output = flat;
102 return *this;
103}
104
107 m_omit_summary_depth = depth;
108 return *this;
109}
110
112 m_ignore_cap = ignore;
113 return *this;
114}
115
119 SetIgnoreCap(true);
120 SetHideName(false);
121 SetHideValue(false);
124 return *this;
125}
126
128 m_format = format;
129 return *this;
130}
131
134 m_summary_sp = summary;
135 return *this;
136}
137
140 if (name)
141 m_root_valobj_name.assign(name);
142 else
143 m_root_valobj_name.clear();
144 return *this;
145}
146
149 m_hide_root_type = hide_root_type;
150 return *this;
151}
152
155 m_hide_root_name = hide_root_name;
156 return *this;
157}
158
160 m_hide_name = hide_name;
161 return *this;
162}
163
165 m_hide_value = hide_value;
166 return *this;
167}
168
171 return *this;
172}
173
176 lldb::LanguageType lang) {
178 return *this;
179}
180
182 m_run_validator = run;
183 return *this;
184}
185
189 return *this;
190}
191
194 m_allow_oneliner_mode = oneliner;
195 return *this;
196}
197
201 return *this;
202}
203
207 return *this;
208}
209
211 const PointerAsArraySettings &ptr_array) {
212 m_pointer_as_array = ptr_array;
213 return *this;
214}
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 & SetHideRootName(bool hide_root_name)
DumpValueObjectOptions & SetDeclPrintingHelper(DeclPrintingHelper helper)
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 & SetIgnoreCap(bool ignore=false)
DumpValueObjectOptions & SetScopeChecked(bool check=true)
DumpValueObjectOptions & SetAllowOnelinerMode(bool oneliner=false)
DumpValueObjectOptions & SetShowSummary(bool show=true)
DumpValueObjectOptions & SetUseObjectiveC(bool use=false)
DumpValueObjectOptions & SetShowLocation(bool show=false)
DumpValueObjectOptions & SetMaximumPointerDepth(PointerDepth depth={PointerDepth::Mode::Never, 0})
DumpValueObjectOptions & SetHideValue(bool hide_value=false)
DumpValueObjectOptions & SetRunValidator(bool run=true)
DumpValueObjectOptions & SetElementCount(uint32_t element_count=0)
lldb::DynamicValueType GetDynamicValueType()
virtual bool IsSynthetic()
Definition: ValueObject.h:612
virtual lldb::LanguageType GetPreferredDisplayLanguage()
#define UINT32_MAX
Definition: lldb-defines.h:19
A class that represents a running process on the host machine.
Definition: SBAddress.h:15
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
Definition: lldb-forward.h:471
Format
Display format definitions.
LanguageType
Programming language type.