diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-01-18 20:23:29 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-01-18 20:23:29 +0000 |
commit | cf84aa46def41cccf4dd4c51cd0543b70c11e4eb (patch) | |
tree | 97cf0e8db09f9114f5dee32b9425ea953d7f6690 /include/clang-c/Index.h | |
parent | 42f56b50062cd3b3c6b23fdb9053578ae9145664 (diff) |
Replace clang_getDeclUSR() with clang_getCursorUSR(). Also remove printing 'contexts' from c-index-test output; it wasn't helpful and was extremely brittle.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c/Index.h')
-rw-r--r-- | include/clang-c/Index.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 4c9f3a36d0..c7b0a5197c 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -336,7 +336,6 @@ CINDEX_LINKAGE CXEntity clang_getEntityFromDecl(CXIndex, CXDecl); CINDEX_LINKAGE CXString clang_getDeclSpelling(CXDecl); CINDEX_LINKAGE unsigned clang_getDeclLine(CXDecl); CINDEX_LINKAGE unsigned clang_getDeclColumn(CXDecl); -CINDEX_LINKAGE CXString clang_getDeclUSR(CXDecl); CINDEX_LINKAGE const char *clang_getDeclSource(CXDecl); /* deprecate */ CINDEX_LINKAGE CXFile clang_getDeclSourceFile(CXDecl); @@ -370,6 +369,10 @@ CINDEX_LINKAGE CXCursor clang_getCursor(CXTranslationUnit, CINDEX_LINKAGE CXCursor clang_getNullCursor(void); +/* clang_getCursorUSR() returns the USR (if any) associated with entity referred to by the + * provided CXCursor object. */ +CINDEX_LINKAGE CXString clang_getCursorUSR(CXCursor); + CINDEX_LINKAGE enum CXCursorKind clang_getCursorKind(CXCursor); CINDEX_LINKAGE unsigned clang_isDeclaration(enum CXCursorKind); CINDEX_LINKAGE unsigned clang_isReference(enum CXCursorKind); |