summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/tests/cindex/test_cursor.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
commit7c7c0682516a00b0f70e76c65ba05229c0039d4b (patch)
tree3805b8bdfe471827a1578007232055b9b4a3bd7a /clang/bindings/python/tests/cindex/test_cursor.py
parent0562caaad6d91e91bfa2c900409f197c85f393e2 (diff)
downloadbcm5719-llvm-7c7c0682516a00b0f70e76c65ba05229c0039d4b.tar.gz
bcm5719-llvm-7c7c0682516a00b0f70e76c65ba05229c0039d4b.zip
Add support for Cursor.displayname in python bindings, from Anders Waldenborg!
llvm-svn: 138785
Diffstat (limited to 'clang/bindings/python/tests/cindex/test_cursor.py')
-rw-r--r--clang/bindings/python/tests/cindex/test_cursor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/bindings/python/tests/cindex/test_cursor.py b/clang/bindings/python/tests/cindex/test_cursor.py
index 04e48389456..3dde891a9c2 100644
--- a/clang/bindings/python/tests/cindex/test_cursor.py
+++ b/clang/bindings/python/tests/cindex/test_cursor.py
@@ -54,8 +54,10 @@ def test_get_children():
assert tu_nodes[1].kind == CursorKind.STRUCT_DECL
assert tu_nodes[1].spelling == 's1'
+ assert tu_nodes[1].displayname == 's1'
assert tu_nodes[1].is_definition() == False
assert tu_nodes[2].kind == CursorKind.FUNCTION_DECL
assert tu_nodes[2].spelling == 'f0'
+ assert tu_nodes[2].displayname == 'f0(int, int)'
assert tu_nodes[2].is_definition() == True
OpenPOWER on IntegriCloud