When I was writing tests for the original version of this patch I discovered that clang_getCursorLexicalParent was actually broken for some edge cases.<div>Now that my patch for that issue was committed in <span style="background-color:rgb(255,255,255);white-space:pre-wrap">r155858, lets try this again.</span></div>
<div><span style="background-color:rgb(255,255,255);white-space:pre-wrap"><br></span></div><div><span style="background-color:rgb(255,255,255);white-space:pre-wrap">- Adding lexical_parent and semantic_parent properties to clang.cindex.Cursor</span></div>
<div><span style="background-color:rgb(255,255,255);white-space:pre-wrap">- Two new tests (one for each property), require libclang built from r155858 or later to pass</span></div><div><span style="background-color:rgb(255,255,255);white-space:pre-wrap">- New test utility function (get_cursors) that gets all the nodes with a specific spelling.</span></div>
<div><span style="background-color:rgb(255,255,255);white-space:pre-wrap"><br></span></div><div><span style="background-color:rgb(255,255,255);white-space:pre-wrap"><br></span></div><div><span style="background-color:rgb(255,255,255);white-space:pre-wrap">Thanks</span></div>
<div><span style="background-color:rgb(255,255,255);white-space:pre-wrap">-Evan Pipho</span></div><div><span style="background-color:rgb(255,255,255);white-space:pre-wrap"><br></span></div><div><span style="background-color:rgb(255,255,255);white-space:pre-wrap"><br>
</span></div>