-
Notifications
You must be signed in to change notification settings - Fork 125
feat: on-demand compile_commands.json
generation
#45
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
Conversation
compile_commands.json
generation
Clang is stingy about including POSIX extensions implicitly, so I couldn't figure out what the best option is, so i settled for declaring both explicitly. Let me know if this causes issues! |
Alternatively, you can use Bear together with nob for generating compile_commands.json |
+1 for Bear. No issues here with LSP and using what it generates.
lol |
Yeah, |
This feature looks interesting, but I feel like it is too much outside of the scope of nob.h is trying to be, sorry. |
The goal was to add
compile_commands.json
generator into nob.Application: LSP
Windows testing is still required, works well on linux though
Example 1
produces:
Example 2
produces:
Example 3
produces
build/compile_commands.json
: