diff options
author | Gregory Szorc <gregory.szorc@gmail.com> | 2012-02-05 19:42:06 +0000 |
---|---|---|
committer | Gregory Szorc <gregory.szorc@gmail.com> | 2012-02-05 19:42:06 +0000 |
commit | 96ad633771182c54b5b62fa4be23f866ed0beb15 (patch) | |
tree | 93abb3fc5edc103c64b038c50067c958401bfa01 /bindings/python/clang | |
parent | 2d10680fe173c21c33367a04bb0969f65a43434c (diff) |
[clang.py] Implement Type.is_pod
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/clang')
-rw-r--r-- | bindings/python/clang/cindex.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index a5e3ed6845..58182f3e09 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -1178,6 +1178,10 @@ class Type(Structure): """ return Type_is_restrict_qualified(self) + def is_pod(self): + """Determine whether this Type represents plain old data (POD).""" + return Type_is_pod(self) + def get_pointee(self): """ For pointer types, returns the type of the pointee. @@ -1858,6 +1862,10 @@ Type_is_restrict_qualified = lib.clang_isRestrictQualifiedType Type_is_restrict_qualified.argtypes = [Type] Type_is_restrict_qualified.restype = bool +Type_is_pod = lib.clang_isPODType +Type_is_pod.argtypes = [Type] +Type_is_pod.restype = bool + Type_get_pointee = lib.clang_getPointeeType Type_get_pointee.argtypes = [Type] Type_get_pointee.restype = Type |