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 Jan 9, 2018 · 26 revisions
{
  "initializationOptions": {
    "cacheDirectory": "/tmp/cquery",
    "cacheFormat": 1,
    "enableComments": true
  }
}

Comments

Set "enableComments": true in initialization options or pass command line option --init='{"enableComments": true}' to cquery (VSCode:cquery.launch.args, Emacs:cquery-additional-arguments). cquery will index comments associated with functions/types/variables (macros are not handled due to clang_Cursor_getRawCommentText's peculiarity).

Certain comment markers /** /// //! (e.g. Doxygen) are processed by default. /* // are also recognized because cquery uses -fparse-all-comments in the clang command line.

Visual Studio Code: good Emacs: lsp-ui-doc https:/emacs-lsp/lsp-ui LanguageClient-neovim: 😢 https:/autozimu/LanguageClient-neovim/issues/224