C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Go to file
2018-02-22 08:54:05 -08:00
ci Comment the macOS related hack in before_deploy.sh. 2018-02-07 16:41:59 +08:00
src Update tests 2018-02-22 08:54:05 -08:00
third_party Remove ToSymbol 2018-02-09 15:39:55 -08:00
.appveyor.yml AppVeyor: Fix MSYS2 build by using --llvm-config 2018-02-11 12:22:01 -08:00
.clang_complete Misc formatting 2017-03-17 00:58:41 -07:00
.clang-format Add project .clang-format 2017-11-19 12:15:14 -05:00
.gitattributes Index tests need to be CRLF 2018-01-03 17:22:21 -08:00
.gitignore Update .gitignore 2018-01-29 16:13:46 -08:00
.gitmodules Add submodule https://github.com/msgpack/msgpack-c and make Serialize/Deserialize aware of SerializeFormat 2018-01-06 15:29:53 -08:00
.pep8 wip 2017-12-28 08:55:46 -08:00
.travis.yml Make all travis bots required 2018-02-06 23:22:00 -08:00
.ycm_extra_conf.py Add src/ directory to .ycm_extra_conf.py 2017-12-07 11:54:51 -08:00
compile_commands.json Update compile_commands.json symlink to point to build/release 2017-12-12 00:10:20 -08:00
README.md Update README.md 2018-01-18 15:50:23 -08:00
wscript Index namespace alias and MSVC __interface; add --enable-assert to waf; add lexical container to xref requests 2018-02-20 22:13:58 -08:00

cquery

Join the chat at https://gitter.im/cquery-project/Lobby

cquery is a highly-scalable, low-latency language server for C/C++/Objective-C. It is tested and designed for large code bases like Chromium. cquery provides accurate and fast semantic analysis without interrupting workflow.

Demo

cquery implements almost the entire language server protocol and provides some extra features to boot:

  • code completion (with both signature help and snippets)
  • finding definition/references
  • type hierarchy (parent type, derived types, expandable tree view)
  • finding base/derived methods/classes, call tree
  • symbol rename
  • document and global symbol search
  • hover tooltips showing symbol type
  • diagnostics
  • code actions (clang FixIts)
  • darken/fade code disabled by preprocessor
  • #include auto-complete, undefined type include insertion, include quick-jump (goto definition, document links)
  • auto-implement functions without a definition
  • semantic highlighting, including support for rainbow semantic highlighting

>>> Getting started (CLICK HERE) <<<

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 exclude v8, webkit, and third_party, it goes down to about 6.5gb.

License

MIT