]> granicus.if.org Git - clang/commitdiff
Fix mixed declarations and code warning.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 9 Aug 2010 21:06:06 +0000 (21:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 9 Aug 2010 21:06:06 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110602 91177308-0d34-0410-b5e6-96231b3b80d8

tools/c-index-test/c-index-test.c

index db897b3a5007a31c8d8b7afa930407d0dfc23ef4..c3ef7942352657237f67608574999b743975a259 100644 (file)
@@ -890,13 +890,13 @@ int perform_code_completion(int argc, const char **argv, int timing_only) {
 
   CIdx = clang_createIndex(0, 1);
   if (getenv("CINDEXTEST_EDITING")) {
+    unsigned I, Repeats = 5;
     TU = clang_parseTranslationUnit(CIdx, 0,
                                     argv + num_unsaved_files + 2,
                                     argc - num_unsaved_files - 2,
                                     unsaved_files,
                                     num_unsaved_files,
                                     getDefaultParsingOptions());
-    unsigned I, Repeats = 5;
     for (I = 0; I != Repeats; ++I) {
       results = clang_codeCompleteAt(TU, filename, line, column,
                                      unsaved_files, num_unsaved_files,