Meta: modernize old-fashioned loops to range-based for.

Changes done via `clang-tidy` with some manual fine-tuning
for the variable naming and `auto` type deduction
where appropriate.
This commit is contained in:
Pavel Solodovnikov
2017-09-11 13:40:26 +03:00
parent 00975e9261
commit 7d5095796a
133 changed files with 2453 additions and 3589 deletions
+2 -3
View File
@@ -13,9 +13,8 @@ bool cmAddCompileOptionsCommand::InitialPass(
return true;
}
for (std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i) {
this->Makefile->AddCompileOption(i->c_str());
for (std::string const& i : args) {
this->Makefile->AddCompileOption(i.c_str());
}
return true;
}