From 0438a55db90f05d85dc75089a6fe1da021e50911 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Wed, 13 Jun 2018 16:00:39 +0000 Subject: [PATCH] [libclang] Make c-index-test.c ISO C90 compliant. Fixes a build bot breakage caused by r334593. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334612 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/c-index-test/c-index-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 50fea5ba8b..dd1652e32c 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -2304,6 +2304,7 @@ static void print_completion_result(CXTranslationUnit translation_unit, CXString BriefComment; CXString Annotation; const char *BriefCommentCString; + unsigned i; fprintf(file, "%s:", clang_getCString(ks)); clang_disposeString(ks); @@ -2365,7 +2366,6 @@ static void print_completion_result(CXTranslationUnit translation_unit, } clang_disposeString(BriefComment); - unsigned i; for (i = 0; i < clang_getCompletionNumFixIts(completion_results, index); ++i) { CXSourceRange correction_range; -- 2.40.0