aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/clang/cindex.py
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-30 00:15:34 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-30 00:15:34 +0000
commitb60a2bebb5f3048f6c53d4f3997ebd84493a2d98 (patch)
treeeafe2e5f06d72e34f90d2081165c909314242e2b /bindings/python/clang/cindex.py
parent709bca84cfdd9ca41518e4ef3797abdf172b9947 (diff)
Add support for Cursor.displayname in python bindings, from Anders Waldenborg!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/clang/cindex.py')
-rw-r--r--bindings/python/clang/cindex.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
index 4b7dc005f6..5b8f814c05 100644
--- a/bindings/python/clang/cindex.py
+++ b/bindings/python/clang/cindex.py
@@ -619,6 +619,17 @@ class Cursor(Structure):
return Cursor_spelling(self)
@property
+ def displayname(self):
+ """
+ Return the display name for the entity referenced by this cursor.
+
+ The display name contains extra information that helps identify the cursor,
+ such as the parameters of a function or template or the arguments of a
+ class template specialization.
+ """
+ return Cursor_displayname(self)
+
+ @property
def location(self):
"""
Return the source location (the starting character) of the entity