bazel-compile-commands-extractor icon indicating copy to clipboard operation
bazel-compile-commands-extractor copied to clipboard

Goal: Enable awesome tooling for Bazel users of the C language family.

Results 88 bazel-compile-commands-extractor issues
Sort by recently updated
recently updated
newest added

This change adds two main features: 1. You can configure compile commands for certain targets or groups of targets to go into separate files For embedded systems development in particular,...

I use bazel 6.1.1 with bzlmod, when I execute `bazel run :refresh_compile_commands`, it fails with following traceback but no error message. I don't know why and what could I do....

I am setting up a Bazel build system and integrating clangd into my development workflow. My project structure is as follows: ``` | main.cc | BUILD |-base_types | BUILD |...

This fix existing as a symlink to a cmake directory seems like a pretty common use case, and the error when it fails to write is pretty inscrutable. Fixes https://github.com/hedronvision/bazel-compile-commands-extractor/issues/105

Some log messages like this: ``` >>> //external links to the wrong place. Automatically deleting and relinking... >>> Automatically added //external workspace link: This link makes it easy for you--and...

Currently there doesn't seem to be a good way to filter out some targets from the compile command generation. In one of our cases we build the same cpp file...

While debugging the perf of this tool in our project I discovered this: https://github.com/hedronvision/bazel-compile-commands-extractor/blob/1e08f8e0507b6b6b1f4416a9a22cf5c28beaba93/refresh.template.py#L665-L667 It sounds like there might be some poor devx cases being solved here, but it's not...

This is a expanded version of https://github.com/hedronvision/bazel-compile-commands-extractor/pull/205 It adds more header file extensions. This fixes: https://github.com/hedronvision/bazel-compile-commands-extractor/issues/199

``` Traceback (most recent call last): File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/6b14d4c6387320db4445b1f7e9639459/execroot/_main/bazel-out/k8-fastbuild-default/bin/refresh_compile_commands.runfiles/_main/refresh_compile_commands.check_python_version.py", line 15, in refresh_compile_commands.main() File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/6b14d4c6387320db4445b1f7e9639459/execroot/_main/bazel-out/k8-fastbuild-default/bin/refresh_compile_commands.runfiles/_main/refresh_compile_commands.py", line 1426, in main compile_command_entries.extend(_get_commands(args.bazel, target, flags, passthrough_flags)) File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/6b14d4c6387320db4445b1f7e9639459/execroot/_main/bazel-out/k8-fastbuild-default/bin/refresh_compile_commands.runfiles/_main/refresh_compile_commands.py", line 1282, in _get_commands yield from...

This pull request is about to provide a support of writing out compile_commands.json relatively to workspace root to provide each project means of customizing their .clangd. By default compile-commands-extractor's refresh_compile_command...