- Editor configuration
- Clang C++ API
Getting started (CLICK HERE) <<<<>>>>
For more build instructions. And how to build on Windows, FreeBSD, OpenIndiana!
To tell cquery how to find the source tree in your project, you may create either
compile_commands.json in your project root.
.cquery is easy and useful for simple projects.
compile_commands.json allows for explicit specification of compilation command line for each source file.
You need to set up a language client for your editor to use definition/reference/hover/... and for some advanced cquery features some extension is needed.
Customization of cquery, e.g. indexing comments, using msgpack for cache files.
Some issues introduce diagnostic methods:
clang_indexTranslationUnitto disable crash recovery and get the stack trace from a debugger.
Use a debug build
LDFLAGS=-fuse-ld=gold ./waf configure --variant=debug
# Run doctest tests build/debug/bin/cquery --test-unit # Run index tests (index_tests/**) build/debug/bin/cquery --test-index
Some tips for Debugging