summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-07-12 11:35:11 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-07-12 11:35:11 +0000
commitff7f42e61a13e8b8e26c43891d02f573d86b8ce5 (patch)
tree61d0b4edf903e6832eddb1c0f8236933cb2a62b2 /clang/include/clang-c
parent4fabc97c432a43f0c8efc0b307ca9741b016a66c (diff)
downloadbcm5719-llvm-ff7f42e61a13e8b8e26c43891d02f573d86b8ce5.tar.gz
bcm5719-llvm-ff7f42e61a13e8b8e26c43891d02f573d86b8ce5.zip
[libclang] Support for querying whether an enum is scoped
This commit allows checking whether an enum declaration is scoped through libclang and clang.cindex (Python). Patch by Johann Klähn! Differential Revision: https://reviews.llvm.org/D35187 llvm-svn: 307771
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index f404e6d72ec..09f4403556c 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -4417,6 +4417,11 @@ CINDEX_LINKAGE unsigned clang_CXXMethod_isStatic(CXCursor C);
CINDEX_LINKAGE unsigned clang_CXXMethod_isVirtual(CXCursor C);
/**
+ * \brief Determine if an enum declaration refers to a scoped enum.
+ */
+CINDEX_LINKAGE unsigned clang_EnumDecl_isScoped(CXCursor C);
+
+/**
* \brief Determine if a C++ member function or member function template is
* declared 'const'.
*/
OpenPOWER on IntegriCloud