libclang python bindings - function template parameter query

Hi

I’m trying to generate some bindings to a c++ library using libclang python bindings. The library I’m trying to wrap makes extensive use of smart pointers.

template

class RawPtr
{

T* ptr;

};

void Test(RawPtr ptr)
{
}

Using the libclang python bindings what would be the best way of querying the types of template parameters e.g. the int type in the Test global function above?

Regards