bazelbuild/bazel

An example of how to create a C++ compilation database is needed

Open

#13,976 opened on Sep 11, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (4,465 forks)batch import
P3help wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (Avg merge 22d 20h) (77 merged PRs in 30d)

Description

Description of the problem / feature request:

Please provide a definitive example of how to create a compilation database for a Bazel-based C++ project.

Feature requests: what underlying problem are you trying to solve with this feature?

There are numerous IDEs that rely on clang language server (which requires compilation database for precise source indexing) to implement code browsing / code completion features for C++.

Contributor guide