Here are some examples of how to setup clangd for a project
meson setup <build_dir>
generates a compilation database in <build_dir>/compile_commands.json
. Since clangd
automatically looks for the compilation database in build
, we don't need to do anything else if build
is the name of the build directory
meson setup build