bazel-compile-commands-extractor
bazel-compile-commands-extractor copied to clipboard
[Self-Filed] For files compiled for multiple platforms, I'm seeing suggestions for a specific platform. Shouldn't I just see suggestions for what's accessible on all platforms?
Suggested Workaround: You should, but you'll have to do this in your head for now. At least there's autocomplete for everything you want to use--the issue is that there's also autocomplete for things you shouldn't use.
Status: This'd be for clangd to fix. Filed an issue, but the fixes are likely fairly gnarly.
I use --platform_suffix to prevent Bazel from rebuilding, but it seems that doesn't work with this commands extractor.
https://stackoverflow.com/questions/67435744/bazel-separate-output-directories-for-different-build-options/71345166#71345166
Hi, @aminya! Thanks for using this tool, for reaching out, and for looking through the existing issues. Sorry something's not working right for you.
I did a quick check with that flag on my repo. But I didn't see anything obviously wrong, so I wasn't sure what to fix. I'm hoping you'll help me help you, maybe with some more details in a new issue! (Since, at first glance, this seems to be about something separate from this issue.) Are you providing the flag in .bazelrc or in a call to refresh_compile_commands() (see readme), so it'll be used to analyze the builds?