More work to enable more exhaustive testing of the indexing API.
Next step: Add actual some test cases:-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82636 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index d13c08c..24f3c54 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -192,7 +192,15 @@
const char *clang_getCursorSource(CXCursor);
const char *clang_getCursorSpelling(CXCursor);
-const char *clang_getCursorKindSpelling(enum CXCursorKind Kind); /* for debug */
+/* for debug/testing */
+const char *clang_getCursorKindSpelling(enum CXCursorKind Kind);
+void clang_getDefinitionSpellingAndExtent(CXCursor,
+ const char **startBuf,
+ const char **endBuf,
+ unsigned *startLine,
+ unsigned *startColumn,
+ unsigned *endLine,
+ unsigned *endColumn);
/*
* If CXCursorKind == Cursor_Reference, then this will return the referenced