* Suggestions for OOP C++ 'IDE'-like functionality ?
@ 2019-01-25 15:51 jonetsu
2019-01-25 16:37 ` Douglas Davis
0 siblings, 1 reply; 5+ messages in thread
From: jonetsu @ 2019-01-25 15:51 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Suggestions for OOP C++ 'IDE'-like functionality ?
2019-01-25 15:51 Suggestions for OOP C++ 'IDE'-like functionality ? jonetsu
@ 2019-01-25 16:37 ` Douglas Davis
2019-01-25 17:16 ` jonetsu
0 siblings, 1 reply; 5+ messages in thread
From: Douglas Davis @ 2019-01-25 16:37 UTC (permalink / raw)
To: jonetsu; +Cc: help-gnu-emacs
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.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Suggestions for OOP C++ 'IDE'-like functionality ?
2019-01-25 16:37 ` Douglas Davis
@ 2019-01-25 17:16 ` jonetsu
2019-01-25 17:22 ` Douglas Davis
2019-01-25 17:24 ` Dan Čermák
0 siblings, 2 replies; 5+ messages in thread
From: jonetsu @ 2019-01-25 17:16 UTC (permalink / raw)
To: Douglas Davis; +Cc: help-gnu-emacs
On Fri, 25 Jan 2019 11:37:39 -0500
Douglas Davis <douglas.davis.092@gmail.com> wrote:
> I'll come from an LSP
> (https://microsoft.github.io/language-server-protocol/) side...
Hmmm. I'm using Linux. The emacs lsp-mode github points to the MS
github lsp repo. I certainly do not have any MS compilers - does this
compile under g++ in Linux ?
Cheers.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Suggestions for OOP C++ 'IDE'-like functionality ?
2019-01-25 17:16 ` jonetsu
@ 2019-01-25 17:22 ` Douglas Davis
2019-01-25 17:24 ` Dan Čermák
1 sibling, 0 replies; 5+ messages in thread
From: Douglas Davis @ 2019-01-25 17:22 UTC (permalink / raw)
To: jonetsu; +Cc: help-gnu-emacs
Hi,
Microsoft started the definition of the "Language Server Protocol" --
it's simply a specification that anyone is free to implement (their
motivation was to make implementing IDE features standardized). All of
the projects I linked to (clangd, ccls, cquery) just implement the
features of the specification and they all support Linux.
Cheers,
Doug
On Fri, Jan 25, 2019 at 12:16 PM jonetsu <jonetsu@teksavvy.com> wrote:
>
> On Fri, 25 Jan 2019 11:37:39 -0500
> Douglas Davis <douglas.davis.092@gmail.com> wrote:
>
> > I'll come from an LSP
> > (https://microsoft.github.io/language-server-protocol/) side...
>
> Hmmm. I'm using Linux. The emacs lsp-mode github points to the MS
> github lsp repo. I certainly do not have any MS compilers - does this
> compile under g++ in Linux ?
>
> Cheers.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Suggestions for OOP C++ 'IDE'-like functionality ?
2019-01-25 17:16 ` jonetsu
2019-01-25 17:22 ` Douglas Davis
@ 2019-01-25 17:24 ` Dan Čermák
1 sibling, 0 replies; 5+ messages in thread
From: Dan Čermák @ 2019-01-25 17:24 UTC (permalink / raw)
To: jonetsu, Douglas Davis; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]
jonetsu <jonetsu@teksavvy.com> writes:
> On Fri, 25 Jan 2019 11:37:39 -0500
> Douglas Davis <douglas.davis.092@gmail.com> wrote:
>
>> I'll come from an LSP
>> (https://microsoft.github.io/language-server-protocol/) side...
>
> Hmmm. I'm using Linux. The emacs lsp-mode github points to the MS
> github lsp repo. I certainly do not have any MS compilers - does this
> compile under g++ in Linux ?
Sure. The setup that Douglas describes works great under Linux (I am
running it too). At my previous job I had to use Windows and tried
setting LSP + cquery up on Windows with Visual Studio... 2/10 wouldn't
recommend.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-01-25 17:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-25 15:51 Suggestions for OOP C++ 'IDE'-like functionality ? jonetsu
2019-01-25 16:37 ` Douglas Davis
2019-01-25 17:16 ` jonetsu
2019-01-25 17:22 ` Douglas Davis
2019-01-25 17:24 ` Dan Čermák
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.