[cfe-dev] libclang python bindings - function template parameter query

Don Boogert don.boogert at gmail.com
Wed Jan 1 09:22:36 PST 2014


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<typename T>
class RawPtr
{
    T* ptr;
};

void Test(RawPtr<int> 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
-- 
Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140101/d53d9308/attachment.html>


More information about the cfe-dev mailing list