CINDEX_LINKAGE CXString clang_getCursorSpelling(CXCursor);
-CINDEX_LINKAGE unsigned clang_getCursorLine(CXCursor); /* deprecate */
-CINDEX_LINKAGE unsigned clang_getCursorColumn(CXCursor); /* deprecate */
-CINDEX_LINKAGE const char *clang_getCursorSource(CXCursor); /* deprecate */
-CINDEX_LINKAGE CXFile clang_getCursorSourceFile(CXCursor); /* deprecate */
-
/**
* \brief Retrieve the physical location of the source constructor referenced
* by the given cursor.
return 0;
}
-unsigned clang_getCursorLine(CXCursor C) {
- return clang_getCursorLocation(C).line;
-}
-
-unsigned clang_getCursorColumn(CXCursor C) {
- return clang_getCursorLocation(C).column;
-}
-
-const char *clang_getCursorSource(CXCursor C) {
- return clang_getFileName(clang_getCursorLocation(C).file);
-}
-
-CXFile clang_getCursorSourceFile(CXCursor C) {
- return clang_getCursorLocation(C).file;
-}
-
CXSourceLocation clang_getCursorLocation(CXCursor C) {
if (clang_isReference(C.kind)) {
// FIXME: Return the location of the reference, not of the underlying
_clang_getCompletionChunkKind
_clang_getCompletionChunkText
_clang_getCursor
-_clang_getCursorColumn
_clang_getCursorDecl
_clang_getCursorFromDecl
_clang_getCursorKind
_clang_getCursorKindSpelling
-_clang_getCursorLine
_clang_getCursorLocation
-_clang_getCursorSource
-_clang_getCursorSourceFile
_clang_getCursorSpelling
_clang_getCursorUSR
_clang_getDeclColumn