]> granicus.if.org Git - clang/commitdiff
I will not mix declaration and statements in C90.
authorDouglas Gregor <dgregor@apple.com>
Tue, 14 Sep 2010 00:20:32 +0000 (00:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 14 Sep 2010 00:20:32 +0000 (00:20 +0000)
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

index 305fb40f9b6cd6f6344741258dcbce9842069373..acc868e52bdc582a39fb59905ed0ccd1a700075d 100644 (file)
@@ -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);          
         }