]> granicus.if.org Git - clang/commitdiff
Use a range-based for loop; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 21 Jul 2015 21:18:29 +0000 (21:18 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 21 Jul 2015 21:18:29 +0000 (21:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242836 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprCXX.cpp

index 845cd4dcf06156d8559c167a1ad92e37cfe65681..666175000453c92fa1a24dfa11d25378bc745aaf 100644 (file)
@@ -4021,8 +4021,8 @@ static bool evaluateTypeTrait(Sema &S, TypeTrait Kind, SourceLocation KWLoc,
     // 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;