How to generate compile_commands.json file with full target in windows

1,024 views
Skip to first unread message

Long Le

unread,
Jan 11, 2021, 2:47:31 AM1/11/21
to Chromium-dev
Im trying to use clangd with vscode in Windows with the guild from chromium : https://chromium.googlesource.com/chromium/src/+/master/docs/clangd.md. But in clangd log, i found some file was fail to indexing like this
Capture.PNG
I think my problem is that I follow the instruction and it is only generate data for chrome target, some file cannot be indexed. So what is the setup for full targets ?

Robert Flack

unread,
Jan 12, 2021, 1:34:00 PM1/12/21
to philo...@gmail.com, Chromium-dev
Looks like you can pass additional targets:

So you should be able to modify the call to specify the targets you need, e.g. to include chrome_driver and content_shell:
tools/clang/scripts/generate_compdb.py -p out/Release chromedriver content_shell > compile_commands.json

I think all is a valid target for the full targets you were asking for.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/8b562074-1d85-49a6-8521-5a128b6789b0n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages