<div dir="ltr"><div>Hi,</div><div><br></div>I'm using clang-tool to extract type names in template arguments. For example,<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">typedef unsigned int vectors32_t[32];<br>template <typename T><br>func(T *const vec) {<br>    ...<br>}<br>int main() {<br>    ...<br>    func<vector32_t>(...);<br>    ...<br>}</blockquote><div><br></div><div>I'd like to get the type name "vector32_t" from func's template argument. So I use clang::FunctionDecl::getTemplateSpecializationArgs() to get func's template argument list, extract the argument from the list, and then try to get the type name for the argument by using clang::TemplateArgument::getAsType().getAsString(). However, "unsigned int [32]" is returned rather than "vector32_t". </div><div><br></div><div>Any thoughts on how I can extract the type alias name "vector32_t" in my above example? </div><div><br></div><div>Thanks,</div><div>Oliver</div></div>