diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-12-04 15:13:46 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-12-04 15:13:46 +0000 |
commit | 1eb60825f0b858a4568c1a9497cc61b0d90c9b3a (patch) | |
tree | 2c37062db068de89e2abfd43f9a12a4c964a2754 /include/clang-c | |
parent | 20409155c75e78bceb622a5e0d1fad40df70f34d (diff) |
libclang: Add a function to libclang for retrieving the bit width value
Patch by Jyun-Yan You.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 24c754d995..ac8f4dfa10 100644 --- a/include/clang-c/Index.h +++ b/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 7 +#define CINDEX_VERSION_MINOR 8 #define CINDEX_VERSION_ENCODE(major, minor) ( \ ((major) * 10000) \ @@ -2683,6 +2683,13 @@ CINDEX_LINKAGE long long clang_getEnumConstantDeclValue(CXCursor C); CINDEX_LINKAGE unsigned long long clang_getEnumConstantDeclUnsignedValue(CXCursor C); /** + * \brief Retrieve the bit width of a bit field declaration as an integer. + * + * If a cursor that is not a bit field declaration is passed in, -1 is returned. + */ +CINDEX_LINKAGE int clang_getFieldDeclBitWidth(CXCursor C); + +/** * \brief Retrieve the number of non-variadic arguments associated with a given * cursor. * |