ping<br><br><div class="gmail_quote">On Sun, Apr 22, 2012 at 2:48 PM, Evan P <span dir="ltr"><<a href="mailto:hiwrac@gmail.com" target="_blank">hiwrac@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra"><div class="gmail_quote">Didn't get any bites on this in cfe-dev, hopefully now that 3.1 has branched I can get a comment or two on this.</div><div><div class="h5"><div class="gmail_quote"><br>
</div><div class="gmail_quote">
<br><br>This is my first real deep dive into the clang guts, so I am submitting this patch to the dev list rather than commits so that it can get extra reviewing and critiquing.<div><br></div><div>2 Changes:</div><div><br>

</div><div>
1) Cursors created from translation unit declarations will now be of kind CXCursor_TranslationUnit rather than the default CXCursor_UnexposedDecl </div><div><br></div><div>2) Cursor created by clang_getTranslationUnitCursor is now created with MakeCXCursor and includes the translation unit decl.  This ensures that the cursor returned by clang_getTranslationUnitCursor and clang_getCursorLexicalParent in the case of a translation unit compare correctly via clang_equalCursors.  The code to fetch the translation decl is based on code inside CursorVisitor::VisitChildren.</div>


<div><br></div><div><br></div><div>I did not add any additional tests for this, but did re-run the current test suite.  If someone could point me toward the best place to add said tests I would be happy to create some.</div>


<div><br></div><div>Thanks</div><span><font color="#888888"><div>-Evan</div><div><br></div>
</font></span></div><br></div></div></div>
</blockquote></div><br>