<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>you can try `const_cast` as first try to do it.<br>
    </p>
    <p>Jonas<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 03.10.2017 um 21:31 schrieb Roman
      Popov via cfe-dev:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAATAM3GCp=U0Z-9Pa0va1zv+sbfNLBvGOom9VVLt-iPFzKzMDQ@mail.gmail.com">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I'm writing a code refactoring tool that needs some static
          analysis capabilities.</div>
        <div>I've noticed that AST Matchers return const AST nodes, but
          static analysis sometimes wants to consume non-const pointers.</div>
        <div><br>
        </div>
        <div>For example to build call graph I need to pass non-const
          pointer:</div>
        <div> CallGraph::addToCallGraph(Decl *D)</div>
        <div><br>
        </div>
        <div>So does static analysis modifies AST? Or it's just a bug in
          method signature?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Roman</div>
      </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>