From: Vedant Kumar Date: Mon, 16 Nov 2015 00:59:34 +0000 (+0000) Subject: [Frontend] Rangify for loop. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b95a804168de06669834cf3c0a953f41ad8861c;p=clang [Frontend] Rangify for loop. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253178 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index c0cf64cecb..04f13901e9 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -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(); }