[GCC-XML] Templates yet again.
Brad King
brad.king at kitware.com
Thu Jan 27 10:16:30 EST 2005
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.
> 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.
-Brad
More information about the gccxml
mailing list