# nickdiego/compiledb

Tool for generating Clang's JSON Compilation Database files for make-based build systems.

Repository: https://github.com/nickdiego/compiledb
Canonical: https://ross.abutalabs.com/products/compiledb
Language: Python
License: GPL-3.0
License Family: copyleft
Topics: compilation-database, clang, c, cpp, makefile, gnu-make
Last push: 2026-08-14T01:50:53+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 40, longevity 100
- inputs: {"age_days": 3320, "days_push": 20, "days_rel": 528, "gap_med": 0.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1653, forks 128 (observed 2026-08-28T04:05:17.752820+00:00)

## What it is
A Python CLI tool that generates Clang's JSON Compilation Database (compile_commands.) for GNU make-based build systems. It parses compile commands via make's dry-run mode without requiring a clean build, making it faster than alternatives like Bear for large non-cmake codebases.

## Use cases
- generate compile_commands. for a make-based C++ project
- enable clangd/YouCompleteMe code intelligence in non-cmake codebases
- parse a build log to extract compile commands
- generate compilation database without a clean rebuild
- support cross-compilation projects needing a compilation database

## When to choose
- your project uses GNU make and you need a Clang compilation database
- you want faster database generation than Bear without a clean build
- you need to parse compile commands from existing build logs

## When to avoid
- your project uses CMake, which already generates compile_commands.
- you need a full build interception tool rather than dry-run parsing

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, build-tool, parser
- domain: developer-tools, compilers
- platform: cli, windows, cross-platform, python
- tags: compilation-database, clang, gnu-make, makefile, cpp, lsp, bear-alternative, command-line, linux, macos

## Member repositories
- nickdiego/compiledb (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:17.752820+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:44:58.325808+00:00, confidence not recorded.
  - readme: https://github.com/nickdiego/compiledb (fetched 2026-08-28T04:05:17.752820+00:00, sha 87452ef8e9c6)
  - registry_pypi: https://pypi.org/pypi/compiledb/json (fetched 2026-08-29T11:18:05.593815+00:00, sha 9969a37173e5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
