I tried what you suggested, and almost got it to work :) except in one case:<div><br></div><div>template <typename T></div><div>class Class</div><div>{</div><div>public:</div><div>  template <typename U></div><div>

  void member(T t, U u){}</div><div>};</div><div><br></div><div>Class<int> c;</div><div>c.member(0, 0.0f);</div><div><br></div><div>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?</div>

<div><div><br></div></div>