<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Sterling,<br>
    <br>
    > Would you all be amenable to contributing
    cling/lib/Utils/AST.cpp to clang?<br>
    <br>
    Of course :).  I agree that this feature belongs in clang proper.<br>
    <br>
    AST.cpp is pretty much standalone (depends only on clang and llvm)<br>
    <br>
    Thanks,<br>
    Philippe.<br>
    <br>
    PS.  A part that has not yet been integrated in AST.cpp is the
    adding of default<br>
    template parameters (for user classes where that parameter might
    matter for I/O)<br>
    and can be found in:<br>
       
<a class="moz-txt-link-freetext" href="https://root.cern.ch/gitweb?p=root.git;a=blob;f=core/metautils/src/TMetaUtils.cxx">https://root.cern.ch/gitweb?p=root.git;a=blob;f=core/metautils/src/TMetaUtils.cxx</a><br>
    in the routines<br>
        ROOT::TMetaUtils::GetNormalizedType<br>
        ROOT::TMetaUtils::AddDefaultParameters<br>
        ROOT::TMetaUtils::KeepNParams<br>
    <br>
    <div class="moz-cite-prefix">On 10/14/15 11:53 AM, Sterling
      Augustine wrote:<br>
    </div>
    <blockquote
cite="mid:%3CCAEG7qUw1O5Zn-79iLU=5RNQqUKaJMVgi+DW+9nsExry+=GEFsg@mail.gmail.com%3E"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Tue, Oct 13, 2015 at 2:48 PM,
            Philippe Canal <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:pcanal@fnal.gov"
                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:pcanal@fnal.gov">pcanal@fnal.gov</a></a>></span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
                <br>
                We also discovered that we could not find in clang a
                routine that reliably generate the name (or the
                equivalent<br>
                decl/type) corresponding to a type as it would need to
                be typed from the global namespace (i.e. a unique
                identifier<br>
                of the class); </div>
            </blockquote>
            <div><br>
            </div>
            <div>Philippe,</div>
            <div><br>
            </div>
            <div>Would you all be amenable to contributing
              cling/lib/Utils/AST.cpp to clang?</div>
            <div><br>
            </div>
            <div>I would be willing to write-up the patch if that would
              be helpful. I'm not sure how deep the dependencies go.</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>