Code Completion

Ark provides a working clangd binary. Once you have built the software once, or sourced the env.sh script, you will have a clangd in the following path:

${ARK_ROOT}/.toolchain/sysroot/bin/clangd

This daemon will provide code completion and clang-tidy warnings to supported editors. For example, in vim, you could use YouCompleteMe, and other editors like VSCode have supported plugins as well.

The plugins are typically responsible for launching clangd and managing it.

The code compilation database is generated in your build directory, typically at:

${ARK_ROOT}/build/compile_commands.json

You must feed this to clangd (or through your plugin’s configuration) so that it can resolve all of your symbols and use our build flags.