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 to be used by language server #2481

Merged
merged 2 commits into from
May 19, 2022
Merged

generate compile_commands.json to be used by language server #2481

merged 2 commits into from
May 19, 2022

Conversation

anggape
Copy link
Contributor

@anggape anggape commented May 16, 2022

No description provided.

@raysan5
Copy link
Owner

raysan5 commented May 18, 2022

@anggape Why is this change needed? Nobody has requested it before. Please, could you explain some real use-case?

@argc1
Copy link

argc1 commented May 19, 2022

Im not expert on cmake, but some language server need json compilation database to make it works, so this is required if you not use ide like visual studio or clion

@anggape
Copy link
Contributor Author

anggape commented May 19, 2022

hai @raysan5 like @argc1 mentions, both clangd and ccls languages server need this, like they say in the documentations here:
https://clangd.llvm.org/installation.html#compile_commandsjson
https://github.com/MaskRay/ccls/wiki/Project-Setup#how-ccls-obtains-sources-and-compilation-commands

@raysan5 raysan5 merged commit d3caee0 into raysan5:master May 19, 2022
@raysan5
Copy link
Owner

raysan5 commented May 19, 2022

@argc1 @anggape Thank you very much for the explanation, merged! :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants