[cfe-dev] index library

Daniel Dunbar daniel at zuster.org
Fri Jan 15 09:18:58 CST 2010


On Tue, Jan 5, 2010 at 5:51 PM, Andrew Sutton <andrew.n.sutton at gmail.com> wrote:
> I spent yesterday morning hacking out a Python wrapper for the CIndex
> library (using ctypes). It seemed like a quick and easy way to pull data
> from C/C++ files... It's very much a first attempt. Probably not great, but
> it seems to work so far. I can make the code available if anybody's
> interested. Anyhow, I ran into a couple of problems that I couldn't quite
> resolve on my own.

If you feel like its good enough to be useful to others, please submit
it. I would love for us to have Python bindings support in-tree.

 - Daniel

> When I tried to compile a simple program with some templates (clang
> -emit-ast), clang fails with an 'Unexepcted DeclType', which I've taken to
> mean that PCHWriter (and probably PCHReader) don't support the necessary
> visitors for TemplateDecl or Decl's with associated TemplateDecls.
>
> I was going to take a shot at encoding templates into PCH's when I realized
> that I have absolutely no idea what is actually supposed to go into a PCH or
> AST file. In fact, it didn't like there was a lot support for C++ Decls in
> the PCHWriter/Reader. I was just curious what the plans are for these AST
> objects. Are there any? What needs to be supported?
>
> Andrew Sutton
> andrew.n.sutton at gmail.com
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>


More information about the cfe-dev mailing list