compiledb
brew install compiledb
v0.10.7
GPL-3.0-or-later
Generate a Clang compilation database for Make-based build systems
29
30-day installs · #5869
105
90-day · #5490
623
365-day · #4643
1.6k
★ GitHub stars · updated 1y ago
Runtime dependencies
GitHub topics
c
clang
compilation-database
cpp
gnu-make
makefile
Links
- https://github.com/nickdiego/compiledb
- GitHub: nickdiego/compiledb
- Brew formula source: Formula/c/compiledb.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"python@3.14"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Generate a Clang compilation database for Make-based build systems",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:33+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "compiledb",
"github_default_branch": "main",
"github_last_commit_at": "2025-03-23T10:17:22Z",
"github_readme_excerpt": "# Compilation Database Generator\n\n[](https://circleci.com/gh/nickdiego/compiledb)\n[](https://pypi.org/project/compiledb/)\n[](https://pypi.org/project/compiledb)\n[](https://github.com/nickdiego/compiledb/blob/master/LICENSE)\n\nTool for generating [Clang\u0027s JSON Compilation Database][compdb] file for GNU\n`make`-based build systems.\n\nIt\u0027s aimed mainly at non-cmake (cmake already generates compilation database)\nlarge codebases. Inspired by projects like [YCM-Generator][ycm-gen] and [Bear][bear],\nbut faster (mainly with large projects), since in most cases it **doesn\u0027t need a clean\nbuild** (as the mentioned tools do) to generate the compilation database file, to\nachieve this it uses the make options such as `-n`/`--dry-run` and `-k`/`--keep-going`\nto extract the compile commands. Also, it\u0027s more **cross-compiling friendly** than\nYCM-generator\u0027s fake-toolchanin approach.\n\n## Installation\n\n```\n# pip install compiledb\n```\n- Supports Python \u003e= 3.3\n- For bash completion support, add the content of `sh-completion/compiledb.bash` file\n to your `.bashrc` file, for example.\n\n## Usage\n\n`compiledb` provides a `make` python wrapper script which, besides to execute the make\nbuild command, updates the JSON compilation database file corresponding to that build,\nresulting in a command-line interface similar to [Bear][bear].\n\nTo generate `compile_commands.json` file using compiledb\u0027s \"make wrapper\" script,\nexecuting Makefile target `all`:\n```bash\n$ compiledb make\n```\n\n`compiledb` forwards all the options/arguments passed after `make` subcommand to GNU Make,\nso one can, for example, generate `compile_commands.json` using `core/main.mk`\nas main makefile (`-f` flag), starting the build from `build`",
"github_repo": "nickdiego/compiledb",
"github_stars": 1641,
"github_topics": [
"c",
"clang",
"compilation-database",
"cpp",
"gnu-make",
"makefile"
],
"homepage": "https://github.com/nickdiego/compiledb",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 29,
"installs_365d": 623,
"installs_90d": 105,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-3.0-or-later",
"llm_generated_at": null,
"llm_model": null,
"name": "compiledb",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 5869,
"rank_365d": 4643,
"rank_90d": 5490,
"raw_hash": "0ec1afb97a25176c",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/compiledb.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.10.7",
"versioned_formulae": [],
"why_use_this": null
}