36 : m_collection_sp(collection_sp) {}
45 return properties_sp->GetSubValue(exe_ctx, path,
error);
52 llvm::StringRef value) {
55 return properties_sp->SetSubValue(exe_ctx, op, path, value);
60 Stream &strm, uint32_t dump_mask,
67 llvm::json::Value json = properties_sp->ToJSON(exe_ctx);
68 strm.
Printf(
"%s", llvm::formatv(
"{0:2}", json).str().c_str());
70 properties_sp->DumpValue(exe_ctx, strm, dump_mask);
79 return properties_sp->DumpAllDescriptions(interpreter, strm);
84 llvm::StringRef property_path,
85 uint32_t dump_mask,
bool is_json) {
88 return properties_sp->DumpPropertyValue(exe_ctx, strm, property_path,
96 std::vector<const Property *> &matching_properties)
const {
99 properties_sp->Apropos(keyword, matching_properties);
101 return matching_properties.size();
105 static constexpr llvm::StringLiteral g_experimental(
"experimental");
106 return g_experimental;
114 size_t dot_pos = setting.find_first_of(
'.');
115 return setting.take_front(dot_pos) == experimental;
static llvm::raw_ostream & error(Stream &strm)
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
virtual void DumpAllDescriptions(CommandInterpreter &interpreter, Stream &strm) const
virtual Status DumpPropertyValue(const ExecutionContext *exe_ctx, Stream &strm, llvm::StringRef property_path, uint32_t dump_mask, bool is_json=false)
virtual void DumpAllPropertyValues(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask, bool is_json=false)
size_t Apropos(llvm::StringRef keyword, std::vector< const Property * > &matching_properties) const
virtual Status SetPropertyValue(const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef property_path, llvm::StringRef value)
virtual lldb::OptionValueSP GetPropertyValue(const ExecutionContext *exe_ctx, llvm::StringRef property_path, Status &error) const
static bool IsSettingExperimental(llvm::StringRef setting)
static llvm::StringRef GetExperimentalSettingsName()
virtual lldb::OptionValuePropertiesSP GetValueProperties() const
static Status FromErrorString(const char *str)
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.
std::shared_ptr< lldb_private::OptionValueProperties > OptionValuePropertiesSP
std::shared_ptr< lldb_private::OptionValue > OptionValueSP