edward852 / blog-skeleton-v3

The skeleton of my personal blog
https://edward852.github.io
1 stars 0 forks source link

post/%E7%94%9F%E6%88%90compile_commands.json%E6%96%87%E4%BB%B6/ #8

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

生成compile_commands.json文件 - 时聆心语

compile_commands.json 文件能够有效提高一些工具(比如说ccls1, vscode2)的代码跳转、补全等功能。 因此,本文将会说明如何生成 compile_commands.json 文件,特别是使用 makefile 的老工程。

https://edward852.github.io/post/%E7%94%9F%E6%88%90compile_commands.json%E6%96%87%E4%BB%B6/

MakerFace commented 1 year ago

厉害了!

goodpaperman commented 1 year ago

cmake 可以直接生成呀,太棒了!

zr4in commented 8 months ago

新版的bear好像是改了的,bear -- make,需要在编译指令前加上--