<font face="tahoma,sans-serif">Sounds good!</font><div><font face="tahoma,sans-serif"><br></font></div><div><font face="tahoma,sans-serif">Cheers,</font></div><div><font face="tahoma,sans-serif"><br>Stu</font></div><div><font face="tahoma,sans-serif"><br clear="all">
</font><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(80, 0, 80)"><strong><span style="color:rgb(153, 204, 255)">Stuart Carnie, CTO</span></strong><br><span style="color:rgb(255, 102, 0)"><strong><a href="http://manomio.com/" style="color:rgb(255, 102, 0)" target="_blank">manomio</a> | in retro we trust!</strong></span></span><br>

<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 4:23 PM, Ted Kremenek <span dir="ltr"><<a href="mailto:kremenek@apple.com">kremenek@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Hi Stuart,<div><br></div><div>Most of the CXCursor kinds have been demand added.  Feel free to flesh out additional ones as needed, and submit patches for review.</div><div><br></div><div>
Ted</div><div><br><div><div><div></div><div class="h5"><div>On Jan 26, 2011, at 12:32 PM, Stuart Carnie wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5"><font face="tahoma,sans-serif">Hi all,</font><div>
<font face="tahoma,sans-serif"><br></font></div><div><font face="tahoma,sans-serif">I notice the cindex module is very outdated, so I decided to have a play last night and added a significant amount of the missing CursorKind statics as well as the start of exposing CXType.  In my experimentation, I've noticed is that there appears to be many missing CXCursorKind enums in the clang-c/Index.h header.  As an example, I declared a small function in a test file:</font></div>

<div><font face="tahoma,sans-serif"><br></font></div><div><div><font face="'courier new', monospace">void f0(int a0, int a1) {</font></div><div><font face="'courier new', monospace">start_over:</font></div>

<div><font face="'courier new', monospace">    f1();</font></div><div><font face="'courier new', monospace">}</font></div><div style="font-family:tahoma, sans-serif">
<br></div></div><div><span style="font-family:tahoma, sans-serif">There are 3 children of f0, kinds being CXCursor_ParmDecl, CXCursor_ParmDecl, CXCursor_UnexposedStatement.  I assume the 3rd node is the function body.  I don't think the python code is doing anything wrong when visiting the children.  I looked at MakeCSCursor(Stmt *S, ...) in <a href="http://CXCursor.cpp/" target="_blank">CXCursor.cpp</a> (libclang) and noticed that the function is are largely un-implemented.  I can walk down and find the CallExpr (f1();).</span></div>

<div><span style="font-family:tahoma, sans-serif"><br></span></div><div><span style="font-family:tahoma, sans-serif">Is this an area I could do some work in?  Having complete python bindings for the entire AST would be a great way to learn clang...</span></div>

<div><span style="font-family:tahoma, sans-serif"><br></span></div><div><span style="font-family:tahoma, sans-serif">Cheers,</span></div><div><span style="font-family:tahoma, sans-serif"><br>
</span></div><div><span style="font-family:tahoma, sans-serif">Stu</span></div><div><span style="font-family:tahoma, sans-serif"><br></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(80, 0, 80)"><strong><span style="color:rgb(153, 204, 255)">Stuart Carnie, CTO</span></strong><br>

<span style="color:rgb(255, 102, 0)"><strong><a href="http://manomio.com/" style="color:rgb(255, 102, 0)" target="_blank">manomio</a> | in retro we trust!</strong></span></span><br>
</div></div></div><div class="im">
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></blockquote></div><br></div></div></blockquote></div><br></div>