From 1ab09cc8831e77490edb40121d039deed2f657cc Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 11 Apr 2013 17:02:10 +0000 Subject: [libclang] Have clang_getCXXAccessSpecifier() also return the access control of a C++ declaration within its parent scope. Suggested by Stefan Seefeld. llvm-svn: 179297 --- clang/include/clang-c/Index.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clang/include/clang-c/Index.h') diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index bd407a997d3..deefafd4185 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/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); -- cgit v1.2.3