<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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>On Jan 26, 2011, at 12:32 PM, Stuart Carnie wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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 class="Apple-style-span" face="'courier new', monospace">void f0(int a0, int a1) {</font></div><div><font class="Apple-style-span" face="'courier new', monospace">start_over:</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    f1();</font></div><div><font class="Apple-style-span" face="'courier new', monospace">}</font></div><div style="font-family: tahoma, sans-serif; ">
<br></div></div><div><span class="Apple-style-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/">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 class="Apple-style-span" style="font-family: tahoma, sans-serif; "><br></span></div><div><span class="Apple-style-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 class="Apple-style-span" style="font-family: tahoma, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: tahoma, sans-serif; ">Cheers,</span></div><div><span class="Apple-style-span" style="font-family: tahoma, sans-serif; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: tahoma, sans-serif; ">Stu</span></div><div><span class="Apple-style-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>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></div></body></html>