Command-line tool
bear
brew/bear
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Generate compilation database for clang tooling
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id the-sz.Bear -e
macOS
brew install bear
Linux
brew install bear
Generate `compile_commands.json` by running a build command
bear -- make
Generate compilation database with a custom output file name
bear --output path/to/compile_commands.json -- make
Append results to an existing `compile_commands.json` file
bear --append -- make
Browse
Related command-line tools
- compiledb
Generate a Clang compilation database for Make-based build systems - clang-build-analyzer
Tool to analyze compilation time - clang-format
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript cpp compiler fortran c++ gcc assembly assembler… - afl++
American Fuzzy Lop++ - clang-tidy-sarif
Convert clang-tidy output to SARIF - metashell
Metaprogramming shell for C++ templates - clang-uml
Customizable automatic UML diagram generator for C++ based on Clang cpp uml clang cplusplus plantuml cpp17 libclang… - llvm
Next-gen compiler infrastructure compiler c++ c 编译器 clang llvm lld lldb objective-c compile toolchain kompilieren
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents