[cfe-commits] r120395 - /cfe/trunk/tools/c-index-test/c-index-test.c
Douglas Gregor
dgregor at apple.com
Mon Nov 29 22:04:55 PST 2010
Author: dgregor
Date: Tue Nov 30 00:04:54 2010
New Revision: 120395
URL: http://llvm.org/viewvc/llvm-project?rev=120395&view=rev
Log:
De-C99-ify for loop
Modified:
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=120395&r1=120394&r2=120395&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Tue Nov 30 00:04:54 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 cfe-commits
mailing list