用命令ninja -C out -t compdb cxx cc > compile_commands.json. 这里详细介绍如何生成编译命令
ninja -C out -t compdb cxx cc > compile_commands.json