projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8ee7c
)
Modernize to range-based loop
author
Michael Liao
<michael.liao@intel.com>
Thu, 7 Jan 2016 07:58:25 +0000
(07:58 +0000)
committer
Michael Liao
<michael.liao@intel.com>
Thu, 7 Jan 2016 07:58:25 +0000
(07:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257037
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/KillTheDoctor/KillTheDoctor.cpp
patch
|
blob
|
history
diff --git
a/utils/KillTheDoctor/KillTheDoctor.cpp
b/utils/KillTheDoctor/KillTheDoctor.cpp
index fae3b1a8b9d84bda4a92b6437fd908faea13337f..6c2242aafdfe74a28f708beae5939a067e5aa7d9 100644
(file)
--- 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)