[cfe-dev] clang and gcc implement __PRETTY_FUNCTION__ differently
Nikola Smiljanic
popizdeh at gmail.com
Wed Mar 14 15:09:04 PDT 2012
I tried what you suggested, and almost got it to work :) except in one case:
template <typename T>
class Class
{
public:
template <typename U>
void member(T t, U u){}
};
Class<int> c;
c.member(0, 0.0f);
This is a function template specialization. I
call FD->getPrimaryTemplate()->getTemplatedDecl(); But the first parameter
is still a SubstTemplateTypeParmType, so it prints int instead of T. What
am I doing wrong, I would expect this to be a member specialization kind?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120314/5ca11542/attachment.html>
More information about the cfe-dev
mailing list