[cfe-dev] Getting fully qualified names of random qualtypes.

Philippe Canal via cfe-dev cfe-dev at lists.llvm.org
Thu Oct 15 08:47:32 PDT 2015


Hi Sterling,

 > Would you all be amenable to contributing cling/lib/Utils/AST.cpp to clang?

Of course :).  I agree that this feature belongs in clang proper.

AST.cpp is pretty much standalone (depends only on clang and llvm)

Thanks,
Philippe.

PS.  A part that has not yet been integrated in AST.cpp is the adding of default
template parameters (for user classes where that parameter might matter for I/O)
and can be found in:
https://root.cern.ch/gitweb?p=root.git;a=blob;f=core/metautils/src/TMetaUtils.cxx
in the routines
     ROOT::TMetaUtils::GetNormalizedType
     ROOT::TMetaUtils::AddDefaultParameters
     ROOT::TMetaUtils::KeepNParams

On 10/14/15 11:53 AM, Sterling Augustine wrote:
> On Tue, Oct 13, 2015 at 2:48 PM, Philippe Canal <pcanal at fnal.gov <mailto:pcanal at fnal.gov>> wrote:
>
>     Hi,
>
>     We also discovered that we could not find in clang a routine that reliably generate the name (or the equivalent
>     decl/type) corresponding to a type as it would need to be typed from the global namespace (i.e. a unique identifier
>     of the class);
>
>
> Philippe,
>
> Would you all be amenable to contributing cling/lib/Utils/AST.cpp to clang?
>
> I would be willing to write-up the patch if that would be helpful. I'm not sure how deep the dependencies go.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151015/fd1b2768/attachment.html>


More information about the cfe-dev mailing list