summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 20:34:10 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 20:34:10 +0000
commit771ef6d4f15452d76387cd66552a38122be60925 (patch)
tree78449c43ffd29ef2bd0801c9f8bf80fced0ef3e4 /lldb/source/Interpreter/CommandInterpreter.cpp
parent7463adadbf0ab2742b122a3d4adc8e2041c3ac01 (diff)
downloadbcm5719-llvm-771ef6d4f15452d76387cd66552a38122be60925.tar.gz
bcm5719-llvm-771ef6d4f15452d76387cd66552a38122be60925.zip
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: zturner, labath Subscribers: tberghammer, danalbert, lldb-commits Differential Revision: https://reviews.llvm.org/D26233 llvm-svn: 285855
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 7a41843ec5b..e9a702585ae 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -1656,7 +1656,7 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
if (repeat_command != nullptr)
m_repeat_command.assign(repeat_command);
else
- m_repeat_command.assign(original_command_string.c_str());
+ m_repeat_command.assign(original_command_string);
m_command_history.AppendString(original_command_string);
}
@@ -2146,7 +2146,7 @@ void CommandInterpreter::SourceInitFile(bool in_cwd,
}
if (!init_file && !m_skip_lldbinit_files)
- init_file.SetFile(init_file_path.c_str(), false);
+ init_file.SetFile(init_file_path, false);
}
// If the file exists, tell HandleCommand to 'source' it; this will do the
@@ -2932,7 +2932,7 @@ CommandInterpreter::ResolveCommandImpl(std::string &command_line,
ExtractCommand(scratch_command, next_word, suffix, quote_char);
if (cmd_obj == nullptr) {
std::string full_name;
- bool is_alias = GetAliasFullName(next_word.c_str(), full_name);
+ bool is_alias = GetAliasFullName(next_word, full_name);
cmd_obj = GetCommandObject(next_word, &matches);
bool is_real_command =
(is_alias == false) ||
@@ -2940,8 +2940,8 @@ CommandInterpreter::ResolveCommandImpl(std::string &command_line,
if (!is_real_command) {
matches.Clear();
std::string alias_result;
- cmd_obj = BuildAliasResult(full_name.c_str(), scratch_command,
- alias_result, result);
+ cmd_obj =
+ BuildAliasResult(full_name, scratch_command, alias_result, result);
revised_command_line.Printf("%s", alias_result.c_str());
if (cmd_obj) {
wants_raw_input = cmd_obj->WantsRawCommandString();
OpenPOWER on IntegriCloud