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.<br>
<br>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.<br>
<br>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?<br>
<br>Andrew Sutton<br><a href="mailto:andrew.n.sutton@gmail.com">andrew.n.sutton@gmail.com</a><br>