Generates compile_commands.json for your bazel project
It's a file used by code completion tools, like clangd
Look at example.cpp in vim with coc-nvim plugin with/without that database:
See example
With --experimental_action_listener
we generate JSON files for every build piece and with gen_compile_commands.sh
we make final compile_commands.json
- based on kythe/kythe
- extra_actions_base.proto from bazelbuild/bazel