[GCC-XML] Determining template parameter types

Chris Waldron cwaldron at intrinsyc.com
Sat Aug 2 12:09:55 EDT 2008


As a feature request, it would nice if template parameter types can be
added as an attribute of the Class Element. For example:

 

template <typename P1, typename P2> TemplateClass {

 

};

 

class TemplateClass<void, int>

{

 

};

 

 

<Class id="_10" name="TemplateClass&lt;void,int*&gt;" members="_23 _25
_26 _27 _28 _29 _30 " bases="_21 _24 " tparams="_20 _21">

    <Base type="_21" access="public" virtual="0" offset="12"/>

    <Base type="_24" access="public" virtual="0" offset="0"/> </Class>

 

The tparams attribute indicates the template parameter types defined on
the class.  I cannot seem to find an easy way of determining the
template parameter types from the XML output.

 

Thanks,

Chris

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gccxml.org/pipermail/gccxml/attachments/20080802/9209d21f/attachment.htm>


More information about the gccxml mailing list