[GCC-XML] small template handling improvment

Brad King brad.king at kitware.com
Wed May 10 09:45:03 EDT 2006


Roman Yakovenko wrote:
> A patch, I propose, improves the situation. First of all, every xml 
> element,
> that has "mangled" attribute, will have new attribute - "demangled".
> This attribute will
> contain demangled string. Demangling is done by use of gcc built-in 
> demangler.

Good idea.

> Problems with the patch:
> 1. Adding new text attribute to every node enlarge xml file, and thus
> makes slower
>   parsing process. As for me, this is not a problem at all. But may
> be it is for other
>   people. So may be demangled functionality should be optional

It doesn't look like the increase is too big and I'd rather not have 
options unless there is a really good reason.

> 2. For some declarations, demangled string does not contains return
> type. I don't know
>   why. May be some one can take a look on it and fix. Like in
> previous case it is not
>   a problem for my usage. Cause I am interested only in function name.

I don't think there is anything that can be done about this.  The 
mangled names do not need to contain anything about return types because 
those types are not necessarily used in overloading.  The return type 
can still be recovered from the "returns" attribute.

> Is it possible to apply the patch?

Yes:

/cvsroot/GCC_XML/gccxml/GCC_XML/xml.c,v  <--  xml.c
new revision: 1.112; previous revision: 1.111

-Brad



More information about the gccxml mailing list