Compile Commands Init

为 C/C++ 项目初始化 compile_commands.json 和 .clangd 配置文件,使 clangd LSP 能正确进行代码补全、跳转和诊断。Linux 下使用 bear 拦截构建命令生成,Windows 下使用构建日志配合 CompilerGen.py 生成,并在生成后自动清理脚本临时产物。触发词:compile_commands.json、clangd、编译数据库、代码跳转、LSP 配置、生成 compile_commands。

docevilock 9ff6117 6 files · 52.2 KB Updated

File contents

docevilock/agent-skills-hook/tree/main/agents/skills/compile-commands-init commit 9ff6117d12

Frequently asked questions

npx skillmds@latest add docevilock/compile-commands-init