aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-07-20 22:57:06 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-07-20 23:00:32 -0700
commit895337647896edefda244c7afc4b71eab41ff850 (patch)
tree15384ec11fe1e134dc4d5b912c718ee645d42d68 /lldb/source/Interpreter/CommandInterpreter.cpp
parent0ebdc3be417f4833395281fda8be6df47f73935c (diff)
downloadllvm-895337647896edefda244c7afc4b71eab41ff850.zip
llvm-895337647896edefda244c7afc4b71eab41ff850.tar.gz
llvm-895337647896edefda244c7afc4b71eab41ff850.tar.bz2
[lldb] Remove redundant WithFormat suffixes (NFC)
Replace calls to FooWithFormat() with calls to Foo() when only one argument is provided and the given string doesn't need to be formatted.
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 e55b255..963c1ea 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -1708,7 +1708,7 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
command_string = command_line;
original_command_string = command_line;
if (m_repeat_command.empty()) {
- result.AppendErrorWithFormat("No auto repeat.\n");
+ result.AppendError("No auto repeat.\n");
result.SetStatus(eReturnStatusFailed);
return false;
}
@@ -2141,7 +2141,7 @@ void CommandInterpreter::SourceInitFileCwd(CommandReturnObject &result) {
llvm::sys::path::parent_path(home_init_file)) {
result.SetStatus(eReturnStatusSuccessFinishNoResult);
} else {
- result.AppendErrorWithFormat(InitFileWarning);
+ result.AppendError(InitFileWarning);
result.SetStatus(eReturnStatusFailed);
}
}