m_color_prompts ? m_suggestion_ansi_suffix.c_str() : "";
if (llvm::Optional<std::string> to_add = m_suggestion_callback(line)) {
- std::string to_add_color = ansi_prefix + to_add.getValue() + ansi_suffix;
+ std::string to_add_color = ansi_prefix + to_add.value() + ansi_suffix;
fputs(typed.c_str(), m_output_file);
fputs(to_add_color.c_str(), m_output_file);
size_t new_autosuggestion_size = line.size() + to_add->length();
int opts::symtab::handleSymtabCommand(Debugger &Dbg) {
if (auto error = validate()) {
- logAllUnhandledErrors(std::move(error.getValue()), WithColor::error(), "");
+ logAllUnhandledErrors(std::move(error.value()), WithColor::error(), "");
return 1;
}