Getting compile_commands.json from ninja

Getting compile_commands.json from ninja#

Ninja allows the creation of compile_commands.json like this:

ninja -t compdb > compile_commands.json

More information