diff options
Diffstat (limited to 'source/Interpreter/OptionValue.cpp')
-rw-r--r-- | source/Interpreter/OptionValue.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/source/Interpreter/OptionValue.cpp b/source/Interpreter/OptionValue.cpp index afcace2567cef..2d7c69eaa4326 100644 --- a/source/Interpreter/OptionValue.cpp +++ b/source/Interpreter/OptionValue.cpp @@ -20,9 +20,8 @@ using namespace lldb; using namespace lldb_private; //------------------------------------------------------------------------- -// Get this value as a uint64_t value if it is encoded as a boolean, -// uint64_t or int64_t. Other types will cause "fail_value" to be -// returned +// Get this value as a uint64_t value if it is encoded as a boolean, uint64_t +// or int64_t. Other types will cause "fail_value" to be returned //------------------------------------------------------------------------- uint64_t OptionValue::GetUInt64Value(uint64_t fail_value, bool *success_ptr) { if (success_ptr) @@ -508,8 +507,8 @@ const char *OptionValue::GetBuiltinTypeAsCString(Type t) { lldb::OptionValueSP OptionValue::CreateValueFromCStringForTypeMask( const char *value_cstr, uint32_t type_mask, Status &error) { - // If only 1 bit is set in the type mask for a dictionary or array - // then we know how to decode a value from a cstring + // If only 1 bit is set in the type mask for a dictionary or array then we + // know how to decode a value from a cstring lldb::OptionValueSP value_sp; switch (type_mask) { case 1u << eTypeArch: @@ -574,12 +573,10 @@ bool OptionValue::DumpQualifiedName(Stream &strm) const { } size_t OptionValue::AutoComplete(CommandInterpreter &interpreter, - llvm::StringRef s, int match_start_point, - int max_return_elements, bool &word_complete, - StringList &matches) { - word_complete = false; - matches.Clear(); - return matches.GetSize(); + CompletionRequest &request) { + request.SetWordComplete(false); + request.GetMatches().Clear(); + return request.GetMatches().GetSize(); } Status OptionValue::SetValueFromString(llvm::StringRef value, |