implementing Cursor.get_included_file in python bindings
authorJonathan Coe <jbcoe@me.com>
Thu, 10 May 2018 21:39:29 +0000 (21:39 +0000)
committerJonathan Coe <jbcoe@me.com>
Thu, 10 May 2018 21:39:29 +0000 (21:39 +0000)
commite7e1d9349b04a250b9f67eb5efd3dec0d942c9d4
tree82098629f1a2a76b939af7a67df3eeef07a11a1c
parent86e6742c178e1e50dddb2a40cb8900b98a65c05d
implementing Cursor.get_included_file in python bindings

Summary:
adding function: `Cursor.get_included_file` , so the C API's `clang_getIncludedFile` function is available on the python binding interface
also adding test to unittests

related ticket: https://bugs.llvm.org/show_bug.cgi?id=15223

Reviewers: mgorny, arphaman, jbcoe

Reviewed By: jbcoe

Subscribers: cfe-commits

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

Patch by jlaz (József Láz)

llvm-svn: 332045
clang/bindings/python/clang/cindex.py
clang/bindings/python/tests/cindex/test_translation_unit.py