This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
您好!
我想通过 clang-tidy 执行代码检查,但 clang-tidy 需要一个数据库文件"compile_commands.json"。
可通过"cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON path/to/llvm/source"生成 cmake 项目
可以通过" ninja -C out/D -t compdb cc cxx objc objcxx > compile_commands.json"
I want to hnow CCS project how to generate compile_commands.json.
thanks!