aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBCommandInterpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 5a48dc8..cd6ef3b 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -47,7 +47,7 @@ public:
m_auto_repeat_command =
auto_repeat_command == nullptr
? std::nullopt
- : llvm::Optional<std::string>(auto_repeat_command);
+ : std::optional<std::string>(auto_repeat_command);
// We don't know whether any given command coming from this interface takes
// arguments or not so here we're just disabling the basic args check.
CommandArgumentData none_arg{eArgTypeNone, eArgRepeatStar};
@@ -60,8 +60,8 @@ public:
/// but in short, if std::nullopt is returned, the previous command will be
/// repeated, and if an empty string is returned, no commands will be
/// executed.
- llvm::Optional<std::string> GetRepeatCommand(Args &current_command_args,
- uint32_t index) override {
+ std::optional<std::string> GetRepeatCommand(Args &current_command_args,
+ uint32_t index) override {
if (!m_auto_repeat_command)
return std::nullopt;
else
@@ -78,7 +78,7 @@ protected:
return ret;
}
std::shared_ptr<lldb::SBCommandPluginInterface> m_backend;
- llvm::Optional<std::string> m_auto_repeat_command;
+ std::optional<std::string> m_auto_repeat_command;
};
SBCommandInterpreter::SBCommandInterpreter(CommandInterpreter *interpreter)