ccls/README.md

51 lines
2.1 KiB
Markdown
Raw Normal View History

2017-04-18 04:53:34 +00:00
# cquery
2017-04-26 01:47:10 +00:00
[![Join the chat at https://gitter.im/cquery-project/Lobby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cquery-project/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2017-12-22 00:07:32 +00:00
cquery is a highly-scalable, low-latency language server for C/C++/Objective-C. It is tested
2017-06-14 07:08:25 +00:00
and designed for large code bases like
[Chromium](https://chromium.googlesource.com/chromium/src/). cquery provides
accurate and fast semantic analysis without interrupting workflow.
2017-04-18 04:53:34 +00:00
2017-12-31 09:54:51 +00:00
![Demo](https://ptpb.pw/GlSQ.png?raw=true)
2017-04-18 04:53:34 +00:00
2017-06-14 07:08:25 +00:00
cquery implements almost the entire language server protocol and provides
some extra features to boot:
2017-05-15 07:31:44 +00:00
* code completion (with both signature help and snippets)
* finding definition/references
2017-06-14 07:08:25 +00:00
* type hierarchy (parent type, derived types, expandable tree view)
* finding base/derived methods/classes, call tree
2017-06-14 07:08:25 +00:00
* symbol rename
* document and global symbol search
* hover tooltips showing symbol type
2017-05-10 06:13:56 +00:00
* diagnostics
* code actions (clang FixIts)
* darken/fade code disabled by preprocessor
2017-06-14 07:08:25 +00:00
* #include auto-complete, undefined type include insertion, include quick-jump
(goto definition, document links)
2017-05-29 23:57:56 +00:00
* auto-implement functions without a definition
* semantic highlighting, including support for [rainbow semantic highlighting](https://medium.com/@evnbr/coding-in-color-3a6db2743a1e)
2017-04-18 04:53:34 +00:00
# Setup - build cquery, install extension, setup project
2017-04-18 04:53:34 +00:00
There are three steps to get cquery up and running. Eventually, cquery will be
published in the vscode extension marketplace which will reduce these three
steps to only project setup.
2017-04-18 04:53:34 +00:00
## [Getting started](https://github.com/jacobdufault/cquery/wiki/Getting-started)
And [wiki/Build](https://github.com/jacobdufault/cquery/wiki/Build).
2017-04-18 04:53:34 +00:00
# Limitations
cquery is able to respond to queries quickly because it caches a huge amount of
information. When a request comes in, cquery just looks it up in the cache
without running many computations. As a result, there's a large memory overhead.
For example, a full index of Chrome will take about 10gb of memory. If you
2017-04-18 05:18:46 +00:00
exclude v8, webkit, and third_party, it goes down to about 6.5gb.
2017-04-18 04:53:34 +00:00
# License
2017-04-18 04:57:16 +00:00
MIT