Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Initialization options

Fangrui Song edited this page Mar 12, 2018 · 26 revisions

cquery can be customized. For a list and description of all options, see src/config.h.

You can also pass options through the cquery command line option --init:

  • cquery command line: --init='{"enableComments": 2}' . Single quotes are used to escape words in bash/zsh.
  • VSCode: "cquery.launch.args": ["--init={\"enableComments\": 2}"],
  • Emacs: (setq cquery-extra-init-params '(:enableComments 2 :cacheFormat "msgpack")) (setq cquery-extra-init-params '(:extraClangArguments ("--driver-mode=cl"))

You can also use a script

#!/bin/sh
# Example 0
exec ~/Dev/Util/cquery/build/release/bin/cquery --init='{"enableComments": 2}' "$@"

# Example 1
exec ~/Dev/Util/cquery/build/release/bin/cquery --log-file=/tmp/cquery_log.txt '--init={"extraClangArguments":["-fno-ms-compatibility", "-fno-delayed-template-parsing"]}' "$@"