r253178 - [Frontend] Rangify for loop. NFC.

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 15 16:59:34 PST 2015


Author: vedantk
Date: Sun Nov 15 18:59:34 2015
New Revision: 253178

URL: http://llvm.org/viewvc/llvm-project?rev=253178&view=rev
Log:
[Frontend] Rangify for loop. NFC.

Modified:
    cfe/trunk/lib/Frontend/CompilerInstance.cpp

Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=253178&r1=253177&r2=253178&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Sun Nov 15 18:59:34 2015
@@ -831,13 +831,13 @@ bool CompilerInstance::ExecuteAction(Fro
   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();
     }




More information about the cfe-commits mailing list