[cfe-dev] clang and gcc implement __PRETTY_FUNCTION__ differently

John McCall rjmccall at apple.com
Wed Mar 14 16:15:36 PDT 2012


On Mar 14, 2012, at 4:10 PM, Eli Friedman wrote:
> 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.

This should just be getInstantiatedFromMemberTemplate().

John.



More information about the cfe-dev mailing list