diff options
author | Gregory Szorc <gregory.szorc@gmail.com> | 2012-02-19 18:28:33 +0000 |
---|---|---|
committer | Gregory Szorc <gregory.szorc@gmail.com> | 2012-02-19 18:28:33 +0000 |
commit | 31cc38cb76317bfe50aadbc625d6ff67f727607a (patch) | |
tree | a0a222436691c7ad339bb02879be60458ad86ae6 /bindings/python/clang | |
parent | 772291a67d483c1c2abf324eec5d8d6ca476bfdc (diff) |
[clang.py] Implement Type.is_function_variadic
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/clang')
-rw-r--r-- | bindings/python/clang/cindex.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index d38eb1bfec..d01d1db31a 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -1205,6 +1205,12 @@ class Type(Structure): """ return Type_is_restrict_qualified(self) + def is_function_variadic(self): + """Determine whether this function Type is a variadic function type.""" + assert self.kind == TypeKind.FUNCTIONPROTO + + return Type_is_variadic(self) + def is_pod(self): """Determine whether this Type represents plain old data (POD).""" return Type_is_pod(self) @@ -1893,6 +1899,10 @@ Type_is_pod = lib.clang_isPODType Type_is_pod.argtypes = [Type] Type_is_pod.restype = bool +Type_is_variadic = lib.clang_isFunctionTypeVariadic +Type_is_variadic.argtypes = [Type] +Type_is_variadic.restype = bool + Type_get_pointee = lib.clang_getPointeeType Type_get_pointee.argtypes = [Type] Type_get_pointee.restype = Type |