CallExpr->getCallee() returns an (Expression *) which is the name of the function ("sin" in your case).<div>you can print it using "printPretty" function of Expression.</div><div><br clear="all"><div>
<br></div>Best Regards,<div>Srikanth Vaindam</div><br><br>
<br><br><div class="gmail_quote">On Mon, Apr 30, 2012 at 11:37 AM, redder_0210 <span dir="ltr"><<a href="mailto:redder_0210@yeah.net" target="_blank">redder_0210@yeah.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial">Dear all,<div>I am interested in how to get the name of function-call.</div><div>Here is an example:</div><div>i = sin(x);   //the right part is an statement whose class is CallExprClass.</div>
<div>Now I want to get the name of the CallExpr, namely:"sin".</div><div>Could you tell me how to get the name?</div><div><br></div><div>/cheers.</div><div>By Redder.</div></div><br><br><span title="neteasefooter"><span><hr>

<a href="http://www.lofter.com" target="_blank">网易Lofter,专注兴趣,分享创作!</a>
</span></span><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>