Emacs client for ccls, a C/C++ language server
Switch branches/tags
Nothing to show
Clone or download
Latest commit 07ad553 Nov 6, 2018

README.md

MELPA

emacs-ccls

emacs-ccls is a client for ccls, a C/C++/Objective-C language server supporting multi-million line C++ code-bases, powered by libclang.

It leverages lsp-mode, but also provides some ccls extensions to LSP:

  • semantic highlighting
  • skipped ranges (e.g. a #if false region)
  • cross references: $ccls/inheritance $ccls/call $ccls/vars

More on https://github.com/MaskRay/ccls/wiki/Emacs

Quickstart

(require 'ccls)
(setq ccls-executable "/path/to/ccls/Release/ccls")

Refer to https://github.com/MaskRay/ccls/wiki/Emacs for details.

with lsp-ui-doc, enableComments references + hydra with company-lsp with helm-xref, approximate workspace/symbol search

$ccls/member $ccls/member

$ccls/call (caller/callee, with hierarchical view)

ccls-navigate

https://github.com/MaskRay/ccls/wiki/Emacs#ccls-navigate

ccls-navigate

License

MIT