]> granicus.if.org Git - clang/commit
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)
commitf36fd3dfee9cf0d64fcf587cfbe4020a6ff8efad
treea6d365c4cc340bebf06519a4965b866e4a2b8eab
parent1cd49d08a42d28f602dd04624f8d9d04083dc551
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)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332045 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/clang/cindex.py
bindings/python/tests/cindex/test_translation_unit.py