[cfe-dev] clang and gcc implement __PRETTY_FUNCTION__ differently

Nikola Smiljanic popizdeh at gmail.com
Wed Mar 14 15:34:41 PDT 2012


Thanks Eli, I was thinking along those lines, but how do I actually get the
other one? FunctionDecl can only be one kind, and this one is
TK_FunctionTemplateSpecialization. I took a look at the one returned by the
getPrimaryTemplate()->getTemplatedDecl(), but that one is
TK_FunctionTemplate.

On Wed, Mar 14, 2012 at 11:31 PM, Eli Friedman <eli.friedman at gmail.com>wrote:

> There are multiple templates here, so you need to look through both of
> them.  "FD->getPrimaryTemplate()->getTemplatedDecl()" only gets you
> the function template which is a member of Class<int>.
>
> -Eli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120314/c270a53c/attachment.html>


More information about the cfe-dev mailing list