Skip to content

Proto generated headers (*.pb.h) not included in compile_commands.json output #82

Closed
@eschumacher-s

Description

@eschumacher-s

First, thanks for the tool. Extremely useful.

My issue is that my bazel build includes some .proto files, which at compile time generate .pb.h headers in the bazel cache.

These .pb.h files in compile_commands.json appear to have the wrong directory, which leads to clangd not finding them. For example, compile_commands.json lists directory as /path/to/bazel/repo/ instead of /path/to/.cache/path/to/header.pb.h.

Am I missing something in my configuration to support this scenario? Or is there a suggested workaround I can attempt to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions