/bazel_compile_commands

Primary LanguageC++Apache License 2.0Apache-2.0

bazel-compile-commands

Generates compile_commands.json for your bazel project

What is compile_commands.json

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:

vim with/without compile_commands.json

How to use

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

Acknowledgements