diff options
author | Michael Liao <michael.liao@intel.com> | 2016-01-07 07:58:25 +0000 |
---|---|---|
committer | Michael Liao <michael.liao@intel.com> | 2016-01-07 07:58:25 +0000 |
commit | 8b10213fae53b7fbc8aead491594d87604825a36 (patch) | |
tree | 41ec1fa19a8f76bc89d688378fb0a81c13366178 | |
parent | 8c8ee7cee1b6ed6253ca27666a95a666cd4eea53 (diff) |
Modernize to range-based loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257037 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/KillTheDoctor/KillTheDoctor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/KillTheDoctor/KillTheDoctor.cpp b/utils/KillTheDoctor/KillTheDoctor.cpp index fae3b1a8b9d..6c2242aafdf 100644 --- a/utils/KillTheDoctor/KillTheDoctor.cpp +++ b/utils/KillTheDoctor/KillTheDoctor.cpp @@ -328,11 +328,9 @@ int main(int argc, char **argv) { if (TraceExecution) errs() << ToolName << ": Found Program: " << ProgramToRun << '\n'; - for (std::vector<std::string>::iterator i = Argv.begin(), - e = Argv.end(); - i != e; ++i) { + for (const std::string &Arg : Argv) { CommandLine.push_back(' '); - CommandLine.append(*i); + CommandLine.append(Arg); } if (TraceExecution) |