[llvm-branch-commits] [cfe-branch] r120670 - /cfe/branches/Apple/whitney/tools/c-index-test/c-index-test.c

Daniel Dunbar daniel at zuster.org
Wed Dec 1 18:52:28 PST 2010


Author: ddunbar
Date: Wed Dec  1 20:52:28 2010
New Revision: 120670

URL: http://llvm.org/viewvc/llvm-project?rev=120670&view=rev
Log:
Merge r120395:
--
Author: Douglas Gregor <dgregor at apple.com>
Date:   Tue Nov 30 06:04:54 2010 +0000

    De-C99-ify for loop

Modified:
    cfe/branches/Apple/whitney/tools/c-index-test/c-index-test.c

Modified: cfe/branches/Apple/whitney/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/tools/c-index-test/c-index-test.c?rev=120670&r1=120669&r2=120670&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/tools/c-index-test/c-index-test.c (original)
+++ cfe/branches/Apple/whitney/tools/c-index-test/c-index-test.c Wed Dec  1 20:52:28 2010
@@ -1101,6 +1101,7 @@
   CursorSourceLocation *Locations = 0;
   unsigned NumLocations = 0, Loc;
   unsigned Repeats = 1;
+  unsigned I;
   
   /* Count the number of locations. */
   while (strstr(argv[NumLocations+1], "-cursor-at=") == argv[NumLocations+1])
@@ -1140,7 +1141,7 @@
     return -1;
   }
 
-  for (unsigned I = 0; I != Repeats; ++I) {
+  for (I = 0; I != Repeats; ++I) {
     if (Repeats > 1 &&
         clang_reparseTranslationUnit(TU, num_unsaved_files, unsaved_files, 
                                      clang_defaultReparseOptions(TU))) {





More information about the llvm-branch-commits mailing list