[cfe-dev] Templates (again)

Andrew Sutton andrew.n.sutton at gmail.com
Tue Dec 30 16:27:26 PST 2008


>
>> Building a patch against svn shouldn't be too much trouble. I'm going try
>> to finish off the template-template param basics with ast-print support
>> (hopefully) without introducing any regressions before submitting.
>>
>>
> Okay.
>

It turns out to be impossible to ast-print template template parameters
without handling template declarations. This seems so obvious in
retrospect... So I'm working on AST building for class templates. It's kind
of working, but I can't seem to get the DeclPrinter to see top-level
template declarations. Probably some kind of weird name conflict because I'm
forcing the TemplateDecl to take the same name as its underlying ScopedDecl.

Quick question though. You started building support for depth/position stuff
for template parameters, but the values aren't handled in Sema. Are you
envisioning the depth/position as properties of template parameters or will
they be dealt with elsewhere?

Andrew Sutton
andrew.n.sutton at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081230/1e0c17b1/attachment.html>


More information about the cfe-dev mailing list