Getting compile_commands.json from make# You can use the compiledb tool provided here: More information .