libclang python bindings - function template parameter query


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.


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?