I'm working on a set of reverse engineering  tools (as in program analysis, not the illegal kind) that operate on template source code and have decided to use clang for its implementation. Imagine my surprise when I found out that clang doesn't quite support templates. Rather than wait for somebody else to build it, I decided I would try to do this myself. How hard can it be :) <br>
<br>Attached is a very (VERY) preliminary stab at the beginning of template parsing for clang. It's not complete, it doesn't do anything, there's no AST stuff, I haven't even considered scopes and name resolution, etc., etc. It just recognizes "template <...>". I had hoped to spend some spare time, an hour or so a day (whenever possible) to continue working on this. Please bear in mind that a) I've never worked on a real compiler before and b) I probably don't fully understand the requirements of what I'm working on.<br>
<br>I hope this is an adequate start.<br><br>Andrew Sutton<br><a href="mailto:andrew.n.sutton@gmail.com">andrew.n.sutton@gmail.com</a><br>