==Stuff.h==<br>namespace Stuff<br>{<br>    template< typename A, int B ><br>    class Thingy<br>    {<br>    public:<br>        Thingy() {}<br>        <br>    private:<br>        int data;<br>    };<br>}<br><br>==Stuff.cpp==<br>
#include "Stuff.h"<br>Stuff::Thingy< double, 2 > gThing;<br>void funcy()<br>{<br>    int i;<br>    i++;<br>}<br><br>I tried to write an AST consumer that would iterate over the Decls in the HandleTranslationUnit method but  when I ran it over the above code only got __builtin_va_list (as a TypedefDecl) and 2 VarDecls as for "Stuff". I was expecting a RecordDecl for the Thingy class and decl for the class.<br>
<br>I don't suppose someone would be able to tell me why I'm so far off base? (Or point me to the relevent documentation - I'm rather familiar with the ASTContext/ASTConsumer/Type/Decl/DeclContext Doxygen output at this point!)<br>
<br>Many thanks in advance - I suspect I'm missing something rather obvious!<br>Pascal<br>