9#ifndef LLDB_CORE_USERSETTINGSCONTROLLER_H
10#define LLDB_CORE_USERSETTINGSCONTROLLER_H
17#include "llvm/ADT/StringRef.h"
25class CommandInterpreter;
26class ExecutionContext;
48 llvm::StringRef property_path,
53 llvm::StringRef property_path,
54 llvm::StringRef value);
57 Stream &strm, llvm::StringRef property_path,
58 uint32_t dump_mask,
bool is_json =
false);
61 Stream &strm, uint32_t dump_mask,
62 bool is_json =
false);
67 size_t Apropos(llvm::StringRef keyword,
68 std::vector<const Property *> &matching_properties)
const;
85 .value_or(default_value);
88 template <typename T, typename U = typename std::remove_pointer<T>::type,
89 std::enable_if_t<std::is_pointer_v<T>,
bool> =
true>
static llvm::raw_ostream & error(Stream &strm)
"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
const U * GetPropertyAtIndexAs(uint32_t idx, const ExecutionContext *exe_ctx=nullptr) const
lldb::OptionValuePropertiesSP m_collection_sp
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
T GetPropertyAtIndexAs(uint32_t idx, T default_value, const ExecutionContext *exe_ctx=nullptr) const
static bool IsSettingExperimental(llvm::StringRef setting)
static llvm::StringRef GetExperimentalSettingsName()
bool SetPropertyAtIndex(uint32_t idx, T t, const ExecutionContext *exe_ctx=nullptr) const
virtual lldb::OptionValuePropertiesSP GetValueProperties() const
A stream class that can stream formatted output to a file.
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