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

compile_commands.json generator for clangd integration #1224

Open
mrdomino opened this issue Jun 16, 2024 Discussed in #1206 · 1 comment
Open

compile_commands.json generator for clangd integration #1224

mrdomino opened this issue Jun 16, 2024 Discussed in #1206 · 1 comment

Comments

@mrdomino
Copy link
Collaborator

Discussed in #1206

Originally posted by alkis June 9, 2024
Is there build support to generate JSON compilation database? Using https://github.com/rizsotto/Bear does not seem to be working.

@mrdomino
Copy link
Collaborator Author

mrdomino commented Jun 16, 2024

@alkis Thank you for mentioning this!

Maybe I’m just bad at Github, but I almost never notice things under Discussions unless I’m in some weird corner of the UI. Glad I was this time though — this is something I have wanted for a while too.

I was about to reply and say that I haven’t had any smart ideas about it, but then I went and checked, and realized that this is actually probably incredibly doable.

Here, I will give you an example command to run:

build/bootstrap/make COMPILE=echo

Look at all that crap! I bet an intrepid coder could coerce that crap into some JSON.

(Okay, maybe this doesn’t exactly qualify as a “smart” idea. Well, I guess I waited long enough for a smart idea to arise; one didn’t; I am now in the market for dumb ideas.)

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

1 participant