<div><div>+    assert cursors[1].canonical == cursors[0]</div><div><br></div><div>I don't think we should test that - the documentation for clang_getCanonicalCursor in <a href="http://clang.llvm.org/doxygen/group__CINDEX__CURSOR__XREF.html">http://clang.llvm.org/doxygen/group__CINDEX__CURSOR__XREF.html</a> does not specify which of the declarations is canonical. Thus we don't want the test to break if this changes in the future.</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><br><div class="gmail_quote">On Sun, May 13, 2012 at 7:20 AM, Gregory Szorc <span dir="ltr"><<a href="mailto:gregory.szorc@gmail.com" target="_blank">gregory.szorc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 bindings/python/clang/cindex.py             |   19 +++++++++++++++++++<br>
 bindings/python/tests/cindex/test_cursor.py |   13 +++++++++++++<br>
 2 files changed, 32 insertions(+)<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>