[cfe-commits] r113821 - /cfe/trunk/tools/c-index-test/c-index-test.c
Douglas Gregor
dgregor at apple.com
Mon Sep 13 17:20:32 PDT 2010
Author: dgregor
Date: Mon Sep 13 19:20:32 2010
New Revision: 113821
URL: http://llvm.org/viewvc/llvm-project?rev=113821&view=rev
Log:
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.
Modified:
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=113821&r1=113820&r2=113821&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Mon Sep 13 19:20:32 2010
@@ -182,10 +182,11 @@
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);
}
More information about the cfe-commits
mailing list