-
Notifications
You must be signed in to change notification settings - Fork 360
Home
Laszlo Nagy edited this page Mar 31, 2026
·
7 revisions
Bear is a tool that generates a JSON compilation database for Clang tooling.
It captures compiler invocations during the build process and writes compile_commands.json, which describes how each translation unit is compiled. Tools like clangd, clang-tidy, and other Clang-based analysis tools use this file to understand your project's build configuration.
bear -- <your-build-command>
- Installation - packages and building from source
- Usage - basic usage, examples, limitations
- Configuration - YAML config file reference
- Platform notes - macOS, Windows, WSL2, Docker, BSD
- How it works - architecture and internals
- Troubleshooting - common problems and solutions
- FAQ - frequently asked questions
- Migrating from 3.x - what changed in 4.x
- Roadmap
- Features
- Packaging - guide for distribution maintainers
- Release process
- Contributing
User guide
Understanding Bear
Project