<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 4, 2013 at 1:26 PM, Pan, Wei <span dir="ltr"><<a href="mailto:wei.pan@intel.com" target="_blank">wei.pan@intel.com</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 lang="EN-US" link="blue" vlink="purple">
<div>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Seemly this function can only remove implicit casts. There are some AST nodes, like CXXConstructExpr in the example, which will stick there.</span></p>
</div></div></blockquote><div><br></div>CastExpr::getSubExprAsWritten knows how to look through the constructor conversions in particular... it's possible that we're missing methods what you want, though. A lot of code in clang avoids that sort of thing by just using a StmtVisitor and just ignoring expressions it doesn't want to handle.<div>
<br></div><div>-Eli </div><div> </div></div></div></div>