[cfe-commits] [Patch] [PythonBindings] Exposing cursor semantic and lexical parent to python (now with proper tests)

Evan P hiwrac at gmail.com
Mon Apr 30 22:37:43 PDT 2012


When I was writing tests for the original version of this patch I
discovered that clang_getCursorLexicalParent was actually broken for some
edge cases.
Now that my patch for that issue was committed in r155858, lets try this
again.

- Adding lexical_parent and semantic_parent properties to
clang.cindex.Cursor
- Two new tests (one for each property), require libclang built from
r155858 or later to pass
- New test utility function (get_cursors) that gets all the nodes with a
specific spelling.


Thanks
-Evan Pipho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120430/ea1a37c9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python_cursor_parents.patch
Type: application/octet-stream
Size: 4155 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120430/ea1a37c9/attachment.obj>


More information about the cfe-commits mailing list