diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-11 17:02:10 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-11 17:02:10 +0000 |
commit | 04b6748ee90649069ee79464317ae6cd6aca317d (patch) | |
tree | b60c695cbcaf69bb02bb30c91bdfc15a1ed25167 /include/clang-c | |
parent | 1407bee187d7b964d5293ac8bf4f7a490c78cec6 (diff) |
[libclang] Have clang_getCXXAccessSpecifier() also return the access control of a C++ declaration within its parent scope.
Suggested by Stefan Seefeld.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index bd407a997d..deefafd418 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -2995,9 +2995,10 @@ enum CX_CXXAccessSpecifier { }; /** - * \brief Returns the access control level for the C++ base specifier - * represented by a cursor with kind CXCursor_CXXBaseSpecifier or - * CXCursor_AccessSpecifier. + * \brief Returns the access control level for the referenced object. + * If the cursor refers to a C++ declaration, its access control level within its + * parent scope is returned. Otherwise, if the cursor refers to a base specifier or + * access specifier, the specifier itself is returned. */ CINDEX_LINKAGE enum CX_CXXAccessSpecifier clang_getCXXAccessSpecifier(CXCursor); |