diff options
Diffstat (limited to 'bindings/python/clang/cindex.py')
-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 0053796462..d048fb60c4 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -1024,6 +1024,14 @@ class Cursor(Structure): return self._type @property + def result_type(self): + """Retrieve the Type of the result for this Cursor.""" + if not hasattr(self, '_result_type'): + self._result_type = Type_get_result(self.type) + + return self._result_type + + @property def underlying_typedef_type(self): """Return the underlying type of a typedef declaration. |