Skip to content

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

Merged
raysan5 merged 2 commits into
raysan5:masterfrom
anggape:master
May 19, 2022
Merged

raysan5 merged 2 commits into
raysan5:masterfrom
anggape:master

Conversation

@anggape

@anggape anggape commented May 16, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@raysan5

raysan5 commented May 18, 2022

Copy link
Copy Markdown
Owner

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

@argc1

argc1 commented May 19, 2022

Copy link
Copy Markdown

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

anggape commented May 19, 2022

Copy link
Copy Markdown
Contributor Author

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

raysan5 commented May 19, 2022

Copy link
Copy Markdown
Owner

@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.

3 participants