[cfe-dev] Newcomer to Clangd
Daniel Martín via cfe-dev
cfe-dev at lists.llvm.org
Sun May 21 09:22:03 PDT 2017
Yes, I'm aware of irony-mode, YCM, Rtags, etc. The problem is that they
are more or less constantly reinventing the wheel, and also use
different protocol formats. The consequence of this is that you
typically have to install RTags for cross references and irony/YCM for
autocompletion. And after that, you might feel the necessity to create
"just another tool" to make those components talk to each other and to
the build system (see cmake-ide, for example). This clearly does not
scale well and would not let us avoid clunky C++ support outside of
major IDEs anytime soon.
I think Clangd, which is based on a well-documented protocol that is
gaining traction across the industry, is the way to go.
Regards,
Daniel Martín
On 21/05/2017 5:51 PM, Paul Smith wrote:
> On Sun, 2017-05-21 at 17:29 +0200, Daniel Martín via cfe-dev wrote:
>> Also, I would like to test this with other clients with LSP support
>> outside of VS Code. I'd like to add/test proper Emacs support for this tool.
> FYI for Emacs support you might start by looking at irony-mode:
>
> https://github.com/Sarcasm/irony-mode
>
> This creates a small server linked with libclang that an Emacs mode can
> use to request source interpretation, to enable code completion and
> syntax checking.
>
> It works pretty well, although sometimes it gets stuck and I have to
> kill/restart the irony server else trying to visit a buffer hangs.
More information about the cfe-dev
mailing list