<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>I have a FunctionDecl that is an instantiated FunctionTemplateDecl. I want to figure out if the template argument is a typedef type - unfortunately, the TemplateArgument only contains the desugared type. This makes sense, given the way templates work, but it's inconvenient.<br></div>
<div> </div>
<div>Is there any way for me to get the actual type that the user instantiated the template with? I tried <a class="el" href="http://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html#a8a5ee203ad0c4a166d12656b2a7cccbb">getTemplateSpecializationArgsAsWritten</a>() but it seems to always return NULL.<br></div>
<div> </div>
<div id="sig19426269"><div class="signature">---<br></div>
<div class="signature">Best regards,<br></div>
<div class="signature"> </div>
<div class="signature">Gábor 'ShdNx' Kozár<br></div>
<div class="signature"><a href="http://gaborkozar.me">http://gaborkozar.me</a><br></div>
<div class="signature"> </div>
</div>
<div> </div>
</body>
</html>