[cfe-dev] clang and gcc implement __PRETTY_FUNCTION__ differently

Eli Friedman eli.friedman at gmail.com
Wed Mar 14 16:10:09 PDT 2012


On Wed, Mar 14, 2012 at 3:34 PM, Nikola Smiljanic <popizdeh at gmail.com> wrote:
> 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.

No idea.  I'm not entirely sure we even track that.

-Eli



More information about the cfe-dev mailing list