[cfe-dev] Parsing headers with libclang and retrieve information

Matthieu Brucher matthieu.brucher at gmail.com
Thu Apr 11 05:44:29 PDT 2013

2013/4/11 Matthieu Brucher <matthieu.brucher at gmail.com>

> Hi David,
> Are you using ipython? I find ipython's tab-completion is an
>>  excellent way of discovering the libclang API. See for example
>> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-August/023449.html
> Thanks. I sometimes use ipython, but I still have some troubles with a
> 100% command line interface.
>> > - when I get a type like std::vector<something>, with display name I
>> can get vector<something>, but I never can retrieve the std::. Is there a
>> way of doing so?
>> Here's how clang-ctags does it:
>> https://github.com/drothlis/clang-ctags/blob/8ecf1306/clang-ctags#L83
> Nice, I should check that!
> No tip for the argument name by any chance?

I finally manage to get to the name. I didn't see that I could get the
function's arguments directly without using the function type itself.

Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
Music band: http://liliejay.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130411/d3070b33/attachment.html>

More information about the cfe-dev mailing list