r242836 - Use a range-based for loop; NFC.

Aaron Ballman aaron at aaronballman.com
Tue Jul 21 14:18:29 PDT 2015


Author: aaronballman
Date: Tue Jul 21 16:18:29 2015
New Revision: 242836

URL: http://llvm.org/viewvc/llvm-project?rev=242836&view=rev
Log:
Use a range-based for loop; NFC.

Modified:
    cfe/trunk/lib/Sema/SemaExprCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=242836&r1=242835&r2=242836&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Tue Jul 21 16:18:29 2015
@@ -4021,8 +4021,8 @@ static bool evaluateTypeTrait(Sema &S, T
     // Precondition: T and all types in the parameter pack Args shall be
     // complete types, (possibly cv-qualified) void, or arrays of
     // unknown bound.
-    for (unsigned I = 0, N = Args.size(); I != N; ++I) {
-      QualType ArgTy = Args[I]->getType();
+    for (const auto *TSI : Args) {
+      QualType ArgTy = TSI->getType();
       if (ArgTy->isVoidType() || ArgTy->isIncompleteArrayType())
         continue;
 





More information about the cfe-commits mailing list