[GCC-XML] Templates yet again.
Lemmih
lemmih at gmail.com
Thu Jan 27 19:34:49 EST 2005
On Thu, 27 Jan 2005 10:16:30 -0500, Brad King <brad.king at kitware.com> wrote:
> Lemmih wrote:
> > Would it be possible to remove template information from the name of
> > classes/structs and keep it as a list of type IDs (ala bases)?
>
> This may be possible but implementing it will have to wait until full
> uninstantiated template dumping is implemented. Likely the output
> representation for these two features will be linked. Please submit
> this as a feature request here:
>
> http://www.gccxml.org/Bug
>
> so that it can be included if uninstantiated template dumping is ever
> implemented.
I take it that there's no immediate plans of this happening?
> > Currently 'exampleClass<exampleClass2>' isn't associated with
> > 'exampleClass2' ('exampleClass2' is omitted when using
> > '-fxml-start=exampleClass') unless it's used in 'exampleClass'. (eg.
> > 'std::list<std::string>' results in a class with the name
> > 'std::list<std::basic_string<char, std::char_traits<char>,
> > std::allocator<char> >,std::allocator<std::basic_string<char,
> > std::char_traits<char>, std::allocator<char> > > >' but
> > 'std::allocator<std::basic_string<char, std::char_traits<char>,
> > std::allocator<char> > >' is _not_ instantiated.) Also, distinguishing
> > between types and values is hard if not impossible.
> >
> > Is this information lost before it ever reaches GCCXML?
>
> GCC-XML cannot generate instantiations...it is a read-only walk of GCC's
> representation. It is up to the user to make sure desired tempaltes are
> instantiated in the input translation unit.
Yes but all the classes _are_ instantiated and visible without -fxml-start.
--
Friendly,
Lemmih
More information about the gccxml
mailing list