]> granicus.if.org Git - clang/commitdiff
[Frontend] Rangify for loop. NFC.
authorVedant Kumar <vsk@apple.com>
Mon, 16 Nov 2015 00:59:34 +0000 (00:59 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 16 Nov 2015 00:59:34 +0000 (00:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253178 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInstance.cpp

index c0cf64cecbe802176650a92adf158392341ee09c..04f13901e916c361e56bb4847f1e0f890e04579a 100644 (file)
@@ -831,13 +831,13 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
   if (getFrontendOpts().ShowStats)
     llvm::EnableStatistics();
 
-  for (unsigned i = 0, e = getFrontendOpts().Inputs.size(); i != e; ++i) {
+  for (const FrontendInputFile &FIF : getFrontendOpts().Inputs) {
     // Reset the ID tables if we are reusing the SourceManager and parsing
     // regular files.
     if (hasSourceManager() && !Act.isModelParsingAction())
       getSourceManager().clearIDTables();
 
-    if (Act.BeginSourceFile(*this, getFrontendOpts().Inputs[i])) {
+    if (Act.BeginSourceFile(*this, FIF)) {
       Act.Execute();
       Act.EndSourceFile();
     }