diff options
Diffstat (limited to 'clang/include/clang-c/Index.h')
-rw-r--r-- | clang/include/clang-c/Index.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index d13c08c3945..24f3c54ba53 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -192,7 +192,15 @@ unsigned clang_getCursorColumn(CXCursor); 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 |