summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-11 17:02:10 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-11 17:02:10 +0000
commit1ab09cc8831e77490edb40121d039deed2f657cc (patch)
treed94b3b02f5a069c38c054430a2d4995b4fc55ab3 /clang/include
parent973b6c9b00307bfa32cbe06e13ca7c6770ea3159 (diff)
downloadbcm5719-llvm-1ab09cc8831e77490edb40121d039deed2f657cc.tar.gz
bcm5719-llvm-1ab09cc8831e77490edb40121d039deed2f657cc.zip
[libclang] Have clang_getCXXAccessSpecifier() also return the access control of a C++ declaration within its parent scope.
Suggested by Stefan Seefeld. llvm-svn: 179297
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang-c/Index.h7
1 files changed, 4 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud