Add support for class and protocol references.

llvm-svn: 83186
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index aa93a7e..1139f62 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -12,12 +12,10 @@
   else {
     printf("%s=%s", clang_getCursorKindSpelling(Cursor.kind),
                       clang_getCursorSpelling(Cursor));
-    if (Cursor.stmt) {
-      CXDecl DeclReferenced = clang_getCursorDecl(Cursor);
-      if (DeclReferenced)
-        printf(":%d:%d", clang_getDeclLine(DeclReferenced),
-                         clang_getDeclColumn(DeclReferenced));
-    }
+    CXDecl DeclReferenced = clang_getCursorDecl(Cursor);
+    if (DeclReferenced)
+      printf(":%d:%d", clang_getDeclLine(DeclReferenced),
+                       clang_getDeclColumn(DeclReferenced));
   }
 }