hedronvision / bazel-compile-commands-extractor

Goal: Enable awesome tooling for Bazel users of the C language family.
Other
696 stars 112 forks source link

Add .h to the list of overrides. #205

Open eugeneo opened 4 months ago

eugeneo commented 4 months ago

This is a lazy fix for #204

In my case it prints a bunch of warnings of "-fsyntax-only" but generates usable compile_commands.json

This is how my version can be tested, add this to MODULE.bazel:

git_override(
    module_name = "hedron_compile_commands",
    remote = "https://github.com/eugeneo/bazel-compile-commands-extractor.git",
    commit = "844279a911d0a0adca480b299799f03f65290cce",
)
helly25 commented 3 months ago

I independently made an extened version of this in A modified version is available as https://github.com/hedronvision/bazel-compile-commands-extractor/pull/209 which also does not add MODULE.bazel.lock.