[cfe-dev] Unable to do even basic Clang tutorial
David Röthlisberger
david at rothlis.net
Mon Jul 23 04:00:01 PDT 2012
On 10 Jul 2012, at 22:04, Bill White wrote:
> So, here's a followon question. If one was starting a new project,
> would one use libclang, write a plug-in, or use the libtooling
> library?
Read http://clang.llvm.org/docs/Tooling.html
and if you decide libclang is the best choice for you, I strongly
recommend you use the python bindings (rather than writing your indexing
tool in C). Use ipython (with its tab-completion) for discovering the
libclang API.
> In particular, I'd like to write an indexing tool, like ctags but
> better.
At the European LLVM conference in April 2012, someone gave a lightning
talk on a C++ class browser he was developing. I don't remember his name
though, and it isn't on the schedule or the slides/videos at
http://llvm.org/devmtg/2012-04-12/
> I particularly want a tool which can be usable by emacs, which is my
> main editor, but with the kind of facilities that Eclipse CDT has.
I have written "clang-ctags", a clang-based ctags implementation:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-July/023223.html
You might consider extending clang-ctags to produce a cscope database,
so you can use Emacs's cscope browser.
Cheers,
Dave.
More information about the cfe-dev
mailing list