diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-04-24 07:17:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-04-24 07:17:12 +0000 |
commit | 017dd74979c74c8950f733938953b98cfa250478 (patch) | |
tree | 27b1b1ca9e6007d84a59aa649b5e7aa84aca0743 /include/clang-c | |
parent | 4abc9bd20590291f31f3507e36ffd4489f43021a (diff) |
Revert "Remove CXCursorSet and related APIs. There are no known clients."
Apparently there are...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 218b37707d..37072a7658 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -2377,6 +2377,38 @@ CINDEX_LINKAGE enum CXLanguageKind clang_getCursorLanguage(CXCursor cursor); */ CINDEX_LINKAGE CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor); + +/** + * \brief A fast container representing a set of CXCursors. + */ +typedef struct CXCursorSetImpl *CXCursorSet; + +/** + * \brief Creates an empty CXCursorSet. + */ +CINDEX_LINKAGE CXCursorSet clang_createCXCursorSet(void); + +/** + * \brief Disposes a CXCursorSet and releases its associated memory. + */ +CINDEX_LINKAGE void clang_disposeCXCursorSet(CXCursorSet cset); + +/** + * \brief Queries a CXCursorSet to see if it contains a specific CXCursor. + * + * \returns non-zero if the set contains the specified cursor. +*/ +CINDEX_LINKAGE unsigned clang_CXCursorSet_contains(CXCursorSet cset, + CXCursor cursor); + +/** + * \brief Inserts a CXCursor into a CXCursorSet. + * + * \returns zero if the CXCursor was already in the set, and non-zero otherwise. +*/ +CINDEX_LINKAGE unsigned clang_CXCursorSet_insert(CXCursorSet cset, + CXCursor cursor); + /** * \brief Determine the semantic parent of the given cursor. * |