diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-12-14 22:01:50 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-12-14 22:01:50 +0000 |
commit | 34ccadcea9eba33d2e410b2af843a3da602611bf (patch) | |
tree | 32e58c7ab7716fe7068b6d35a1ac9b5a0de6deeb /clang/include/clang-c | |
parent | 5b0c3ad564ad8fae0b8b99a39469fc074c2592c3 (diff) | |
download | bcm5719-llvm-34ccadcea9eba33d2e410b2af843a3da602611bf.tar.gz bcm5719-llvm-34ccadcea9eba33d2e410b2af843a3da602611bf.zip |
[libclang] Add support for checking abstractness of records
This patch allows checking whether a C++ record declaration is abstract through
libclang and clang.cindex (Python).
Patch by Johann Klähn!
Differential Revision: https://reviews.llvm.org/D36952
llvm-svn: 320748
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r-- | clang/include/clang-c/Index.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 1204d6a5d88..587008a7210 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -32,7 +32,7 @@ * compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable. */ #define CINDEX_VERSION_MAJOR 0 -#define CINDEX_VERSION_MINOR 44 +#define CINDEX_VERSION_MINOR 45 #define CINDEX_VERSION_ENCODE(major, minor) ( \ ((major) * 10000) \ @@ -4467,6 +4467,12 @@ CINDEX_LINKAGE unsigned clang_CXXMethod_isStatic(CXCursor C); CINDEX_LINKAGE unsigned clang_CXXMethod_isVirtual(CXCursor C); /** + * \brief Determine if a C++ record is abstract, i.e. whether a class or struct + * has a pure virtual member function. + */ +CINDEX_LINKAGE unsigned clang_CXXRecord_isAbstract(CXCursor C); + +/** * \brief Determine if an enum declaration refers to a scoped enum. */ CINDEX_LINKAGE unsigned clang_EnumDecl_isScoped(CXCursor C); |