Lines Matching +full:bool +full:- +full:property

1 //===-- Property.cpp ------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Interpreter/Property.h"
22 Property::Property(const PropertyDefinition &definition) in Property() function in Property
88 ->SetValueFromString( in Property()
91 enum_value->SetDefaultValue(enum_value->GetCurrentValue()); in Property()
96 enum_value->Clear(); in Property()
111 const bool resolve = definition.default_uint_value != 0; in Property()
224 string_value->GetOptions().Reset(definition.default_uint_value); in Property()
229 assert(m_value_sp && "invalid property definition"); in Property()
232 Property::Property(llvm::StringRef name, llvm::StringRef desc, bool is_global, in Property() function in Property
237 bool Property::DumpQualifiedName(Stream &strm) const { in DumpQualifiedName()
239 if (m_value_sp->DumpQualifiedName(strm)) in DumpQualifiedName()
247 void Property::Dump(const ExecutionContext *exe_ctx, Stream &strm, in Dump()
250 const bool dump_desc = dump_mask & OptionValue::eDumpOptionDescription; in Dump()
251 const bool dump_cmd = dump_mask & OptionValue::eDumpOptionCommand; in Dump()
252 const bool transparent = m_value_sp->ValueIsTransparent(); in Dump()
254 strm << "settings set -f "; in Dump()
265 strm << "-- " << desc; in Dump()
271 m_value_sp->DumpValue(exe_ctx, strm, dump_mask); in Dump()
275 void Property::DumpDescription(CommandInterpreter &interpreter, Stream &strm, in DumpDescription()
277 bool display_qualified_name) const { in DumpDescription()
286 const OptionValueProperties *sub_properties = m_value_sp->GetAsProperties(); in DumpDescription()
290 if (m_value_sp->DumpQualifiedName(qualified_name)) in DumpDescription()
292 sub_properties->DumpAllDescriptions(interpreter, strm); in DumpDescription()
298 "--", desc, output_width); in DumpDescription()
300 interpreter.OutputFormattedHelpText(strm, m_name, "--", desc, in DumpDescription()
306 void Property::SetValueChangedCallback(std::function<void()> callback) { in SetValueChangedCallback()
308 m_value_sp->SetValueChangedCallback(std::move(callback)); in SetValueChangedCallback()