Add support for class and protocol references.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83186 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index aa93a7e..1139f62 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/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));
   }
 }