aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-14 00:20:32 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-14 00:20:32 +0000
commit2967e28ee7ba585067f23e309c976d38ebd8699c (patch)
tree458c9d70bc84ac3f8c14d164da3cad49077d824c /clang/tools/c-index-test/c-index-test.c
parentf1144f0929c821aa745f890eb7d558ff5960bdb4 (diff)
downloadllvm-2967e28ee7ba585067f23e309c976d38ebd8699c.zip
llvm-2967e28ee7ba585067f23e309c976d38ebd8699c.tar.gz
llvm-2967e28ee7ba585067f23e309c976d38ebd8699c.tar.bz2
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. llvm-svn: 113821
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 305fb40f..acc868e 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/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);
}