diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-30 17:58:23 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-30 17:58:23 +0000 |
commit | 2dfdb948bef51a601e763191e4becfe59880d382 (patch) | |
tree | f01bdefe4c17e4613d4df2842a2ed7214fae0700 /include/clang-c | |
parent | 3c3ccd283f8c35dbb200a76eacfa17f7861e03bb (diff) |
[libclang] Introduce CXCursor_CXXAccessSpecifier for C++'s public:/private:/protected: specifiers.
Patch by Paolo Capriotti!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index e37779ce06..72c829acbb 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -1309,8 +1309,10 @@ enum CXCursorKind { CXCursor_ObjCSynthesizeDecl = 37, /** \brief An Objective-C @dynamic definition. */ CXCursor_ObjCDynamicDecl = 38, + /** \brief An access specifier. */ + CXCursor_CXXAccessSpecifier = 39, CXCursor_FirstDecl = CXCursor_UnexposedDecl, - CXCursor_LastDecl = CXCursor_ObjCDynamicDecl, + CXCursor_LastDecl = CXCursor_CXXAccessSpecifier, /* References */ CXCursor_FirstRef = 40, /* Decl references */ @@ -2095,7 +2097,8 @@ enum CX_CXXAccessSpecifier { /** * \brief Returns the access control level for the C++ base specifier - * represented by a cursor with kind CX_CXXBaseSpecifier. + * represented by a cursor with kind CXCursor_CXXBaseSpecifier or + * CXCursor_AccessSpecifier. */ CINDEX_LINKAGE enum CX_CXXAccessSpecifier clang_getCXXAccessSpecifier(CXCursor); |