18 : m_current_value(value), m_default_value(value) {
23 Stream &strm, uint32_t dump_mask) {
30 for (
size_t i = 0; i < count; ++i) {
54 if (enumerator_entry) {
59 error_strm.
Printf(
"invalid enumeration value '%s'", value.str().c_str());
62 error_strm.
Printf(
", valid values are: %s",
64 for (
size_t i = 1; i < count; ++i) {
89 for (
const auto &enumerator : enumerators) {
90 ConstString const_enumerator_name(enumerator.string_value);
102 for (
size_t i = 0; i < num_enumerators; ++i) {
108 for (
size_t i = 0; i < num_enumerators; ++i)
static llvm::raw_ostream & error(Stream &strm)
"lldb/Utility/ArgCompletionRequest.h"
void AddCompletion(llvm::StringRef completion, llvm::StringRef description="", CompletionMode mode=CompletionMode::Normal)
Adds a possible completion string.
llvm::StringRef GetCursorArgumentPrefix() const
void TryCompleteCurrentArg(llvm::StringRef completion, llvm::StringRef description="")
Adds a possible completion string if the completion would complete the current argument.
A uniqued constant string class.
llvm::StringRef GetStringRef() const
Get the string value as a llvm::StringRef.
const char * GetCString() const
Get the string value as a C string.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
EnumerationMap::Entry EnumerationMapEntry
void SetEnumerations(const OptionEnumValues &enumerators)
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
EnumerationMap m_enumerations
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
OptionValueEnumeration(const OptionEnumValues &enumerators, enum_type value)
enum_type m_current_value
void AutoComplete(CommandInterpreter &interpreter, CompletionRequest &request) override
virtual Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign)
void NotifyValueChanged()
virtual const char * GetTypeAsCString() const
llvm::StringRef GetString() const
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.
ConstString GetCStringAtIndex(uint32_t idx) const
const Entry * FindFirstValueForName(ConstString unique_cstr) const
T GetValueAtIndexUnchecked(uint32_t idx) const
void Append(ConstString unique_cstr, const T &value)
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.
@ eVarSetOperationReplace
@ eVarSetOperationInvalid
@ eVarSetOperationInsertBefore
@ eVarSetOperationInsertAfter
llvm::ArrayRef< OptionEnumValueElement > OptionEnumValues