generate_compilation_database.py takes a bazel target (or target group like //...), and outputs a clang compilation database at "compile_commands.json".
Uses aquery to get the commands used to build the targets.
A crude script to generate compile_commands.json for bazel C++ targets.
generate_compilation_database.py takes a bazel target (or target group like //...), and outputs a clang compilation database at "compile_commands.json".
Uses aquery to get the commands used to build the targets.
A crude script to generate compile_commands.json for bazel C++ targets.