[python bindings] Fix Cursor.result_type for ObjC method declarations - Bug 36677
authorJonathan Coe <jbcoe@me.com>
Sun, 22 Apr 2018 20:51:05 +0000 (20:51 +0000)
committerJonathan Coe <jbcoe@me.com>
Sun, 22 Apr 2018 20:51:05 +0000 (20:51 +0000)
commit578fe177d467bfbd0814de83814575111b493bda
tree1a01c99f18d480e10abf5cb8d2b24a6b54a23fa4
parent87ba905fe96469c65767f28bab4893ad32e15c02
[python bindings] Fix Cursor.result_type for ObjC method declarations - Bug 36677

Summary:
In cindex.py, Cursor.result_type called into the wrong libclang
function, causing cursors for ObjC method declarations to return invalid
result types. Fixes Bug 36677.

Reviewers: jbcoe, rsmith

Reviewed By: jbcoe

Subscribers: cfe-commits, llvm-commits

Differential Revision: https://reviews.llvm.org/D45671

Patch by kjteske (Kyle Teske).

llvm-svn: 330557
clang/bindings/python/clang/cindex.py
clang/bindings/python/tests/cindex/test_cursor.py