rizsotto/Bear
Generate compile_commands.json for any C or C++ build observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 98
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 21.5
- age_days: 5055
- days_rel: 17
- days_push: 13
- n_releases_24m: 15
Adoption not part of the score
6452 stars · 369 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Bear is a command-line tool that generates a JSON compilation database (compile_commands.) for C and C++ projects by intercepting compiler invocations during a build. It works with any build system, including ones that cannot export the database themselves, and can also parse dry-run output or build logs.
Use cases
- generate compile_commands. for a make or autotools project
- get clangd autocomplete and diagnostics working on a C++ codebase
- create a compilation database without modifying the build system
- capture compiler flags for embedded or cross-compiled toolchains
- build a compilation database from a CI build log or make -n dry-run output
- index a third-party C project I am just exploring
When to choose
- your build system (Make, autotools, custom scripts) cannot emit compile_commands.
- you cannot or do not want to modify the build
- you use unusual toolchains like cross-compilers, ccache, distcc, CUDA, or MPI wrappers
- you only have a build log or dry-run output instead of a runnable build
When to avoid
- your project uses CMake, Meson, or Bazel, which can export the database natively
- you are not working with C or C++ code
- you need a GUI or IDE-integrated indexing solution rather than a CLI tool
Facets
cli-tool · maturity active
developer-tools build-tool compiler parser developer-tools compilers cli cross-platform compilation-database compile-commands- clang clangd c-cpp build-interception command-line linux macos
1 source
- readme: https://github.com/rizsotto/Bear · fetched 2026-08-28 · 88cb262e3350
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rizsotto/Bear | main | 98 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem