Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate compile_commands.json for clangd #691

Closed
HKalbasi opened this issue Jun 30, 2022 · 1 comment
Closed

Generate compile_commands.json for clangd #691

HKalbasi opened this issue Jun 30, 2022 · 1 comment

Comments

@HKalbasi
Copy link
Member

There is a json compilation database format that c/c++ tools like clangd (lsp for c/c++, like rust-analyzer for rust) can use to understand c/c++ projects without knowing about the build system. Some build systems like cmake have first class support for it. It would be great to support an option for emitting it inside build.rs. There is a tool called bear that can proxy the calls to the compiler and emit that json but updating at each build without running a separate tool is even better.

@ldesgoui
Copy link

ldesgoui commented Jul 1, 2022

Dupe of #497

@HKalbasi HKalbasi closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants