<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/11083066/getting-the-source-behind-clangs-ast">https://stackoverflow.com/questions/11083066/getting-the-source-behind-clangs-ast</a><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09/01/2018 19:49, Andrew Gozillon
      via cfe-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM6PR0102MB31734146BF659921DDADAF53BF100@AM6PR0102MB3173.eurprd01.prod.exchangelabs.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
        dir="ltr">
        <p style="margin-top:0;margin-bottom:0">Hi,</p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">I was wondering if there
          was an easy way to retrieve the source information for Type's
          and Decl's from inside a Clang LibTool? I'm aware that some
          Type's and Decl's contain the relevant source information,
          although that doesn't appear to be the case for everything. I
          am also aware that you can use VisitTypeLoc to parse specific
          type locations.
          <br>
        </p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">However, I was wondering
          if there is an easier way to do this. For example passing a
          Type or Decl to a function (when visiting its node) to
          retrieve the relevant source location attached to it?</p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">Thank you for your time.
          <br>
        </p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">Best Regards,</p>
        <p style="margin-top:0;margin-bottom:0">Andrew Gozillon<br>
        </p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>