From 1f6206ed21e026ca7ddaf0bff9599c476301a695 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 14 Sep 2010 00:20:32 +0000 Subject: I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113821 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/c-index-test/c-index-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/c-index-test/c-index-test.c') diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 305fb40f9b..acc868e52b 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -182,10 +182,11 @@ static void PrintCursor(CXCursor Cursor) { printf("["); for (I = 0; I != N; ++I) { CXCursor Ovl = clang_getOverloadedDecl(Referenced, I); + CXSourceLocation Loc; if (I) printf(", "); - CXSourceLocation Loc = clang_getCursorLocation(Ovl); + Loc = clang_getCursorLocation(Ovl); clang_getInstantiationLocation(Loc, 0, &line, &column, 0); printf("%d:%d", line, column); } -- cgit v1.2.3-18-g5258