[cfe-dev] problem with template class inheritance and cursor api

Anders Bakken agbakken at gmail.com
Fri Jan 18 16:07:26 PST 2013


> Could you post a code snippet showing the API you are using that *does*
> work to find a member function's definition from the call site when that
> call site *isn't* in a subclass, or when the superclass isn't templated?
> And then a code snippet showing the (hypothetical) API you would
> *expect* to be able to use for your test case.

I usually use clang_getCursorReferenced() but in this case it just
doesn't get anything.
>
> FYI for exploring the libclang API I found the python bindings, plus
> ipython (an interactive python interpreter with tab-completion)
> extremely helpful. See for example
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-August/023449.html
> -- judging from your rtags tool you either know this already, or don't
> need it, but I thought I'd mention it just in case. :-)

Thanks
I know the regular C-api API in Index.h reasonably well but it doesn't
quite work in this case. Argyrios explained why though.

regards

Anders



More information about the cfe-dev mailing list