aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 47a6f09..8b24c72 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2007,7 +2007,7 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
// repeat command, even though we don't add repeat commands to the history.
if (add_to_history || empty_command) {
Args command_args(command_string);
- llvm::Optional<std::string> repeat_command =
+ std::optional<std::string> repeat_command =
cmd_obj->GetRepeatCommand(command_args, 0);
if (repeat_command)
m_repeat_command.assign(*repeat_command);
@@ -2111,7 +2111,7 @@ void CommandInterpreter::HandleCompletion(CompletionRequest &request) {
HandleCompletionMatches(request);
}
-llvm::Optional<std::string>
+std::optional<std::string>
CommandInterpreter::GetAutoSuggestionForCommand(llvm::StringRef line) {
if (line.empty())
return std::nullopt;