emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clang/emacs/ecb/semantic


From: David Engster
Subject: Re: clang/emacs/ecb/semantic
Date: Fri, 30 Nov 2012 16:15:29 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Pascal J. Bourguignon writes:
> Llvm and clang provide natively a way to get the parse tree (and other
> phases information), and therefore they can be used easily in IDE.
> http://clang.llvm.org/features.html#applications

Since v4.5.0 GCC does that, too, via its plugin interface:

http://gcc.gnu.org/wiki/plugins

I'm not really qualified to compare it to libclang and libtooling, but
at least from what I saw, it's not as well documented and probably
requires some knowledge of gcc's internals to be really usable.

However, the existing python plugin looks very interesting, since it
seems to nicely wrap gcc's tree data structure:

https://gcc-python-plugin.readthedocs.org/en/latest/tree.html

The real task is to condense this structure to something simpler, which
is usable by tools like Semantic.

-David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]