🍺 BREW Explorer

← all formulae

bear

brew install bear v4.1.4 GPL-3.0-or-later

Generate compilation database for clang tooling

1.0k
30-day installs · #1287
4.2k
90-day · #1183
18.4k
365-day · #1105
6.4k
★ GitHub stars · updated 2mo ago

Build dependencies

GitHub topics

build-system build-tool clang compilation-database

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "pkgconf",
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Generate compilation database for clang tooling",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:49+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "bear",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-16T20:36:57Z",
  "github_readme_excerpt": "[![Packaging status](https://repology.org/badge/tiny-repos/bear-clang.svg)](https://repology.org/project/bear-clang/versions)\n[![GitHub release](https://img.shields.io/github/release/rizsotto/Bear)](https://github.com/rizsotto/Bear/releases)\n[![GitHub Release Date](https://img.shields.io/github/release-date/rizsotto/Bear)](https://github.com/rizsotto/Bear/releases)\n[![Continuous Integration](https://github.com/rizsotto/Bear/workflows/rust%20CI/badge.svg)](https://github.com/rizsotto/Bear/actions)\n[![Contributors](https://img.shields.io/github/contributors/rizsotto/Bear)](https://github.com/rizsotto/Bear/graphs/contributors)\n[![Gitter](https://img.shields.io/gitter/room/rizsotto/Bear)](https://gitter.im/rizsotto/Bear)\n\n\u0295\u00b7\u1d25\u00b7\u0294 Build EAR\n===============\n\nBear generates a compilation database for Clang tooling.\n\nThe [JSON compilation database][JSONCDB] describes how each translation unit\nis compiled. Clang-based tools use it to understand compiler flags, include\npaths, and other build settings.\n\nSome build systems can generate a JSON compilation database directly. For\nbuild systems that cannot, Bear captures compiler invocations during the\nbuild and writes the database for you.\n\n  [JSONCDB]: http://clang.llvm.org/docs/JSONCompilationDatabase.html\n\nHow to install\n--------------\n\nBear is [packaged](https://repology.org/project/bear-clang/versions) for many\ndistributions. Check your distribution\u0027s package manager first. Alternatively,\nyou can [build it](INSTALL.md) from source.\n\nHow to use\n----------\n\nAfter installation, run:\n\n    bear -- \u003cyour-build-command\u003e\n\nBear writes `compile_commands.json` to the current working directory.\n\nFor more options, see the man page or run `bear --help`. Pass Bear\u2019s own\noptions before `--`; everything after that is treated as part of the build command.\n\nPlease be aware that some package managers still ship the 2.4.x release. In\nthat case, please omit the extra `--` or consult your local documentation.\n\nFor more information, read the man pages",
  "github_repo": "rizsotto/Bear",
  "github_stars": 6363,
  "github_topics": [
    "build-system",
    "build-tool",
    "clang",
    "compilation-database"
  ],
  "homepage": "https://github.com/rizsotto/Bear",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 1041,
  "installs_365d": 18434,
  "installs_90d": 4222,
  "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": "bear",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1287,
  "rank_365d": 1105,
  "rank_90d": 1183,
  "raw_hash": "d4d29c0ccf5c33d2",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/bear.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "4.1.4",
  "versioned_formulae": [],
  "why_use_this": null
}