[LLVMdev] libclang issue: CXCursor_FunctionTemplate does it work?

Aleksey Kovalevsky morskoyzmey at gmail.com
Tue Nov 27 10:07:43 PST 2012


Hi,
I'm a happy user of libclang.so
I got in trouble trying to get info from templated function such as

/* File: t.cc */

template <class T1,class T2> 
void my_foo(T1 a,T2 b)
{
  
}

I only got CXCursor_FunctionDecl cursor instead of CXCursor_FunctionTemplate
and I don't getting CXCursor_TemplateTypeParameter.
And argument type is Unexposed.

I using 3.1 version with few patches.
Maybe there is patch to handle this, but sorry I didn't found it.




More information about the llvm-dev mailing list