Libclang how to get template arguments for a template type alias

Given the following code:

template <typename T>
class Temp {
    T t;

using Temp_int = Temp<int>;

How can I get the int from the using declaration?

I found it myself. So for posterity, you get the CXType from the TypeAliasDecl, then call clang_Type_getNumTemplateArguments() etc from there