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, lang/rust
- Available flavors
- None listed
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Build
- devel/cargo-generate-vendor STEM->=1.1
- lang/rust
OpenBSD README
This README contains unresolved ports variables; replace them before using its commands.
+-----------------------------------------------------------------------
| 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 && make | bear parse-sh
The output file called compile_commands.json is saved in the current directory.