[cfe-dev] SpecIterator -> TemplateArgumentList

Douglas Gregor dgregor at apple.com
Tue Aug 10 11:12:33 PDT 2010


On Aug 10, 2010, at 10:38 AM, Jay L. T. Cornwall wrote:

> Hi,
> 
> r109870 introduced the SpecIterator class with spec_begin()/spec_end() 
> methods on the FunctionTemplateDecl class, moving getSpecializations() 
> to protected access.
> 
> By dereferencing the iterator I can get the equivalent of 
> FunctionTemplateSpecializationInfo::Function. But how does one reach the 
> TemplateArgumentList of the specialization? I assume there is an 
> orthogonal mechanism which I am missing.

FunctionDecl::getTemplateSpecializationArgs().

	- Doug



More information about the cfe-dev mailing list