summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorSergey Kalinichev <kalinichev.so.0@gmail.com>2016-05-03 06:58:29 +0000
committerSergey Kalinichev <kalinichev.so.0@gmail.com>2016-05-03 06:58:29 +0000
commit7cd277a1ffd44a36b2509856b29a28ff81d07304 (patch)
treea1268fe6add1a207aee3560f02ca7fb0c7851aae /bindings
parent5d99149b4624512b5d13de86fbd764565601109e (diff)
[libclang] Expose the ElaboratedType
Differential Revision: http://reviews.llvm.org/D11797 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/clang/cindex.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
index b55c723dff..5f1c506adb 100644
--- a/bindings/python/clang/cindex.py
+++ b/bindings/python/clang/cindex.py
@@ -1750,6 +1750,7 @@ TypeKind.VARIABLEARRAY = TypeKind(115)
TypeKind.DEPENDENTSIZEDARRAY = TypeKind(116)
TypeKind.MEMBERPOINTER = TypeKind(117)
TypeKind.AUTO = TypeKind(118)
+TypeKind.ELABORATED = TypeKind(119)
class RefQualifierKind(BaseEnumeration):
"""Describes a specific ref-qualifier of a type."""
@@ -1948,6 +1949,12 @@ class Type(Structure):
"""
return conf.lib.clang_Type_getClassType(self)
+ def get_named_type(self):
+ """
+ Retrieve the type named by the qualified-id.
+ """
+ return conf.lib.clang_Type_getNamedType(self)
+
def get_align(self):
"""
Retrieve the alignment of the record.
@@ -3565,6 +3572,11 @@ functionList = [
[Type],
c_uint),
+ ("clang_Type_getNamedType",
+ [Type],
+ Type,
+ Type.from_result),
+
("clang_Type_visitFields",
[Type, callbacks['fields_visit'], py_object],
c_uint),