In a C++ Bazel project, I want to use tools like Clang Tools or RTags, etc.
For that I need to generate a compile_commands.json file.
The solution is trivial for CMake with the CMAKE_EXPORT_COMPILE_COMMANDS.
For simple Makefiles you can still use the Bear tool.
However AFAIK there is no built-in solution for C++ Bazel projects.