https://github.com/cquery-project/emacs-cquery
Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
https://github.com/cquery-project/emacs-cquery
Last synced: 3 months ago
JSON representation
Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
- Host: GitHub
- URL: https://github.com/cquery-project/emacs-cquery
- Owner: cquery-project
- Created: 2018-01-12T01:58:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T14:46:34.000Z (over 6 years ago)
- Last Synced: 2024-11-09T19:41:40.874Z (8 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 102 KB
- Stars: 116
- Watchers: 9
- Forks: 14
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://melpa.org/#/cquery)
# emacs-cquery
emacs-cquery is a client for [cquery](https://github.com/jacobdufault/cquery), a low-latency language server supporting multi-million line C++ code-bases, powered by libclang.
It leverages [lsp-mode](https://github.com/emacs-lsp/lsp-mode), but also provides some cquery extensions to LSP:
* semantic highlighting
* inactive region (e.g. a `#if false` region)
* cross references: `$cquery/base` `$cquery/callers` `$cquery/derived` `$cquery/vars`More on
## Quickstart
```elisp
(require 'cquery)
(setq cquery-executable "/path/to/cquery/build/release/bin/cquery")
;; (setq cquery-executable "/path/to/cquery-install-prefix/bin/cquery")
```To enable comments and use Message Pack for cache files (which are stored in `cacheDirectory`):
```elisp
(setq cquery-extra-init-params '(:index (:comments 2) :cacheFormat "msgpack"))
```Refer to for details.



`$cquery/callHierarchy` (caller hierarchy and callee hierarchy)
## License
[MIT](http://opensource.org/licenses/MIT)