Hi,
I need some more information about template classes than are currently
written by gccxml: Each <Class/> which is an template instantiation
should provide an attribute "template_origin" that links to the template
it is created from.
I added the following code to xml_output_record_type (from xml.c):
{
tree tt = CLASSTYPE_PRIMARY_TEMPLATE_TYPE (rt);
if (tt != rt)
{
int id = xml_add_node (xdi, tt, dn->complete);
fprintf (xdi->file, " template_origin=\"_%d\"", id);
}
}
Unfortunately CLASSTYPE_PRIMARY_TEMPLATE_TYPE() always return the most
general template. Is there any possibility to find out the type of the
most specialized template? And to link from that specialized template to
a more generalized template until the most generalized template is
reached?
BTW: what is the meaning of argument complete?
Thank you, Jochen
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.gccxml.org/mailman/listinfo/gccxml