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

Matthieu Brucher matthieu.brucher at gmail.com
Thu Apr 11 03:18:08 PDT 2013

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?

> > Will the current bindings be upgraded at some point? (for instance, I've
> a binding with a better AccessSpecifier handling mecanism)
> I'm sure the maintainers are open to patches. :-)

Perhaps I should do this, yes ;)
Also I noticed that I could get the const/volatile or restrict qualifiers
with the latest official release.


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/25c18cc3/attachment.html>

More information about the cfe-dev mailing list