Implement source/line/column hooks.

llvm-svn: 80585
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 3126b31..1ef8e92 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -3,9 +3,13 @@
 #include <stdio.h>
 
 static void PrintDecls(CXTranslationUnit Unit, CXCursor Cursor) {
- if (clang_isDeclaration(Cursor.kind))
-   printf("%s => %s\n", clang_getKindSpelling(Cursor.kind),
-                        clang_getDeclSpelling(Cursor.decl));
+  if (clang_isDeclaration(Cursor.kind)) {
+    printf("%s => %s", clang_getKindSpelling(Cursor.kind),
+                       clang_getDeclSpelling(Cursor.decl));
+    printf(" (%s,%d:%d)\n", clang_getCursorSource(Cursor),
+                            clang_getCursorLine(Cursor),
+                            clang_getCursorColumn(Cursor));
+  }
 }
 
 /*