aboutsummaryrefslogtreecommitdiff
path: root/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-11-30 06:04:54 +0000
committerDouglas Gregor <dgregor@apple.com>2010-11-30 06:04:54 +0000
commitbdc4b366e80c125184a3b3c56fa4619cb4ac9e45 (patch)
tree868c94cda56706867e4a631e02b06b6b394e530d /tools/c-index-test/c-index-test.c
parent8e08dec6374473b11c019035aef130e0bb0551f9 (diff)
De-C99-ify for loop
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r--tools/c-index-test/c-index-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index 72afe577ed..7238f4a2d0 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -1101,6 +1101,7 @@ int inspect_cursor_at(int argc, const char **argv) {
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 @@ int inspect_cursor_at(int argc, const char **argv) {
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))) {