This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Home
DaanDeMeyer edited this page Jul 22, 2018
·
43 revisions
>>>> 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 .cquery
or 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:
-
https://github.com/jacobdufault/cquery/issues/192
clang_toggleCrashRecovery(0)
beforeclang_indexTranslationUnit
to disable crash recovery and get the stack trace from a debugger.
Compile with CMAKE_BUILD_TYPE=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