Skip to content

Generate compile_commands.json for clangd #691

Closed as not planned
Closed as not planned
@HKalbasi

Description

@HKalbasi

There is a json compilation database format that c/c++ tools like clangd (lsp for c/c++, like rust-analyzer for rust) can use to understand c/c++ projects without knowing about the build system. Some build systems like cmake have first class support for it. It would be great to support an option for emitting it inside build.rs. There is a tool called bear that can proxy the calls to the compiler and emit that json but updating at each build without running a separate tool is even better.

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