compiledb
« Back to VersTracker
Description:
Generate a Clang compilation database for Make-based build systems
Type: Formula  |  Latest Version: 0.10.7@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: compilation-database clang make build-tools developer-tools
Install: brew install compiledb
About:
Compiledb generates a JSON compilation database for projects using Make-based build systems. It intercepts the build process to capture compiler invocations and outputs a database compatible with clang tools. This enables static analysis, code completion, and refactoring tools to work with traditionally difficult-to-analyze codebases.
Key Features:
  • Intercepts Make build commands automatically
  • Generates clang-compatible compilation database
  • Supports various build systems and compilers
  • Simple command-line interface
Use Cases:
  • Enabling clang-tidy analysis on legacy Make projects
  • Setting up code completion in IDEs for C/C++ projects
  • Facilitating automated refactoring of large codebases
  • Integrating static analysis into existing build pipelines
Alternatives:
  • bear – More mature and widely used, but compiledb is lighter and Python-based
  • scan-build – Clang's native build interceptor, but less flexible for custom build systems
License: GPL-3.0-or-later
Dependencies: python@3.14
Bottles available for: all
Version History
Detected Version Rev Change Commit
Oct 12, 2025 9:32am 0 VERSION_BUMP 926c78c9
Oct 10, 2024 3:01am 0 VERSION_BUMP f7d9d18c
Oct 9, 2024 10:15pm 0 VERSION_BUMP a62360ba