unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Douglas Davis <douglas.davis.092@gmail.com>
To: jonetsu <jonetsu@teksavvy.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Suggestions for OOP C++ 'IDE'-like functionality ?
Date: Fri, 25 Jan 2019 11:37:39 -0500	[thread overview]
Message-ID: <CAM6BRXaMYGHxLAg_TXDybwaUuvHSxfYSzngt=ah4dqr-UL=beA@mail.gmail.com> (raw)
In-Reply-To: <20190125105114.16870be7@mevla>

Hi,

I'll come from an LSP
(https://microsoft.github.io/language-server-protocol/) side... you
have quite a few options here for your C-family language server
provider:
- clangd (https://clangd.github.io/)
- ccls (https://github.com/MaskRay/ccls) (leverages the same clang
APIs that clangd leverages)
- and you mentioned cquery

clangd is part of the llvm project and under active development. ccls
originated from cquery and is under active development. I don't know
much about cquery. All three of these can be used as a C++ language
server.

You have two options (that I know of) for using LSPs in Emacs:
- lsp-mode (https://github.com/emacs-lsp/lsp-mode)
- Eglot (https://github.com/joaotavora/eglot)

w.r.t. a suggestion: personally I use Eglot with clangd (every few
weeks I build the llvm HEAD to get the most recent clangd). I have
zero complaints (https://ddavis.fyi/blog/eglot-cpp-ide/). I've used
lsp-mode as well, but it's been a while. Only con: When I used
lsp-mode I felt it was a bit clunky with options and extensions, where
Eglot is quite minimal, which I view as a pro. I think lsp-mode has
improved that aspect recently - I don't think you can really go wrong
with either.

Cheers,
Doug


On Fri, Jan 25, 2019 at 10:52 AM jonetsu <jonetsu@teksavvy.com> wrote:
>
> Hello,
>
> I'm a bit surprised that the 'stock' emacs I use already knows how to
> 'fish out' method names in .hpp files when using Ctrl-Tab for
> completion (Linux).  This is neat.  Although from a quick browse of the
> topic it seems that there are a certain number of enhancements that
> adds much more functionality for object-oriented C++ development.  I
> barely have started to read about cquery for now.
>
> Any suggestions for adding an 'IDE'-like capability to emacs and what
> are the pros and cons for each recommendation ?  I reckon it's not only
> technical as one must also feel good about using a certain set of
> add-ons.
>
> Cheers.
>



  reply	other threads:[~2019-01-25 16:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-25 15:51 Suggestions for OOP C++ 'IDE'-like functionality ? jonetsu
2019-01-25 16:37 ` Douglas Davis [this message]
2019-01-25 17:16   ` jonetsu
2019-01-25 17:22     ` Douglas Davis
2019-01-25 17:24     ` Dan Čermák

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM6BRXaMYGHxLAg_TXDybwaUuvHSxfYSzngt=ah4dqr-UL=beA@mail.gmail.com' \
    --to=douglas.davis.092@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jonetsu@teksavvy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).