File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -329,10 +329,8 @@ bool CoverageChecker::collectFileSystemHeaders() {
329
329
else {
330
330
// Otherwise we only look at the sub-trees specified by the
331
331
// include paths.
332
- for (std::vector<std::string>::const_iterator I = IncludePaths.begin (),
333
- E = IncludePaths.end ();
334
- I != E; ++I) {
335
- if (!collectFileSystemHeaders (*I))
332
+ for (const std::string &IncludePath : IncludePaths) {
333
+ if (!collectFileSystemHeaders (IncludePath))
336
334
return false ;
337
335
}
338
336
}
Original file line number Diff line number Diff line change @@ -339,8 +339,8 @@ static std::string findInputFile(const CommandLineArguments &CLArgs) {
339
339
llvm::opt::Visibility VisibilityMask (options::CC1Option);
340
340
unsigned MissingArgIndex, MissingArgCount;
341
341
SmallVector<const char *, 256 > Argv;
342
- for (auto I = CLArgs. begin (), E = CLArgs. end (); I != E; ++I )
343
- Argv.push_back (I-> c_str ());
342
+ for (const std::string &CLArg : CLArgs)
343
+ Argv.push_back (CLArg. c_str ());
344
344
InputArgList Args = getDriverOptTable ().ParseArgs (
345
345
Argv, MissingArgIndex, MissingArgCount, VisibilityMask);
346
346
std::vector<std::string> Inputs = Args.getAllArgValues (OPT_INPUT);
Original file line number Diff line number Diff line change @@ -69,8 +69,7 @@ ModularizeUtilities *ModularizeUtilities::createModularizeUtilities(
69
69
// Load all header lists and dependencies.
70
70
std::error_code ModularizeUtilities::loadAllHeaderListsAndDependencies () {
71
71
// For each input file.
72
- for (auto I = InputFilePaths.begin (), E = InputFilePaths.end (); I != E; ++I) {
73
- llvm::StringRef InputPath = *I;
72
+ for (llvm::StringRef InputPath : InputFilePaths) {
74
73
// If it's a module map.
75
74
if (InputPath.ends_with (" .modulemap" )) {
76
75
// Load the module map.
You can’t perform that action at this time.
0 commit comments