bear-3.1.6p5
clang database generator
Project homepage: https://github.com/rizsotto/Bear
Description
Bear is a tool that generates a compilation database for clang tooling.
The JSON compilation database is used in the clang project to provide
information on how a single compilation unit is processed. With this, it is
easy to re-run the compilation with alternate programs.
Some build system natively supports the generation of JSON compilation
database. For projects which does not use such build tool, Bear generates the
JSON file during the build process.
Package information
- Ports path
- devel/bear
- Package architecture
- amd64
- Maintainer
- Rafael Sadowski <rsadowski@openbsd.org>
- Categories
- devel
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.
Direct dependencies
Library
Build
OpenBSD README
This README contains unresolved ports variables. It is source documentation; commands containing these variables require adjustment.
+-----------------------------------------------------------------------
| Running bear on OpenBSD
+-----------------------------------------------------------------------
For more information about using bear(1) for generating compilation database,
look at:
${LOCALBASE}/share/doc/Bear/README.md
For instance, the database generator on the kernel build can be launched with:
cd /usr/src/sys/arch/`uname -m`/conf && config GENERIC.MP
cd /usr/src/sys/arch/`uname -m`/compile/GENERIC.MP
make clean && bear --force-wrapper -- make
The output file called compile_commands.json is saved in the current directory.