summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@gmail.com>2017-02-10 15:51:11 +0000
committerJoey Gouly <joey.gouly@gmail.com>2017-02-10 15:51:11 +0000
commit588e03faa5a31ab50d1933a1448f6673c0585284 (patch)
tree2ff0cf8cab1146db428f2a9226a52f5f49b3987a /bindings
parenta8716484f6d217777b39087292ce440de6fc538c (diff)
[libclang] [OpenCL] Expose half type.
Expose the half type (fp16) through libclang and the python bindings. It seems CXType_LastBuiltin was not updated in b2ea6d9 ("Enable support for __float128 in Clang", 2016-04-13), so update it now. Add an Index test for OpenCL types; in the future we will add other OpenCL types such as images to this test. Patch by Sven van Haastregt. Differential Revision: https://reviews.llvm.org/D29718 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/clang/cindex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
index cf867bbf7d..48fc8b13a2 100644
--- a/bindings/python/clang/cindex.py
+++ b/bindings/python/clang/cindex.py
@@ -1887,6 +1887,7 @@ TypeKind.OBJCID = TypeKind(27)
TypeKind.OBJCCLASS = TypeKind(28)
TypeKind.OBJCSEL = TypeKind(29)
TypeKind.FLOAT128 = TypeKind(30)
+TypeKind.HALF = TypeKind(31)
TypeKind.COMPLEX = TypeKind(100)
TypeKind.POINTER = TypeKind(101)
TypeKind.BLOCKPOINTER = TypeKind(102)