[cfe-dev] HowToGetTheNameOfCallEpxr

srikanth vaindam srikanth.vaindam at gmail.com
Mon Apr 30 09:51:34 PDT 2012


CallExpr->getCallee() returns an (Expression *) which is the name of the
function ("sin" in your case).
you can print it using "printPretty" function of Expression.


Best Regards,
Srikanth Vaindam




On Mon, Apr 30, 2012 at 11:37 AM, redder_0210 <redder_0210 at yeah.net> wrote:

> Dear all,
> I am interested in how to get the name of function-call.
> Here is an example:
> i = sin(x);   //the right part is an statement whose class is
> CallExprClass.
> Now I want to get the name of the CallExpr, namely:"sin".
> Could you tell me how to get the name?
>
> /cheers.
> By Redder.
>
>
> ------------------------------
> 网易Lofter,专注兴趣,分享创作! <http://www.lofter.com>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120430/2693c567/attachment.html>


More information about the cfe-dev mailing list