summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-07-12 11:31:37 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-07-12 11:31:37 +0000
commitd4ad3d7156a3e0b5fe17d667dcf6852cca96a27a (patch)
treee20340fae07a278e7a5538fe357560e8b78a29f6 /include
parent5e97f3f2987eadcd6963cac50f064add5339d6ba (diff)
[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). Differential Revision: https://reviews.llvm.org/D35187 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang-c/Index.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index f404e6d72e..09f4403556 100644
--- a/include/clang-c/Index.h
+++ b/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'.
*/