-
Notifications
You must be signed in to change notification settings - Fork 112
Add a make target for compile-commands.json #2271
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
base: main
Are you sure you want to change the base?
Conversation
Use [bear](https://github.com/rizsotto/Bear) to generate compile_commands.json. This is used for editor's LSPs (i.e. clangd). The compile-commands.json file itself is going to contain local absolute paths. Therefore, add a make target to generate it locally for each developer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
can you please give some more context about this? what are we planning to use it for? |
That's my whole intention. |
Got it. Do you think it's worth adding a mention to this in the contributing doc under |
Sounds like a good idea to me. I'll add a note. |
Use bear to generate compile_commands.json. This is used for editor LSPs (i.e. clangd).
The compile-commands.json file itself is going to contain local absolute paths. Therefore, add a make target to generate it locally for each developer.