Expose clang_getOverriddenCursors to python clang module

Andrew Nelson via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 8 15:03:54 PST 2018


This patch exposes an interface to libclang's clang_getOverriddenCursors
and clang_disposeOverriddenCursors functions to the python api.

The patch is adapted from this stack overflow response but cleaned up to
fit within the existing cindex.py codebase
https://stackoverflow.com/questions/35962473/libclang-python-binding-function-getoverridden

Let me know if there's anything I need to address.  I can add unit tests if
desired but that would double the length of this patch.

Patch attached
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180308/f9c35efa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylibclang_get_overridden_cursors.patch
Type: text/x-patch
Size: 1367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180308/f9c35efa/attachment.bin>


More information about the cfe-commits mailing list