Home

The devel/bear port

bear-3.1.5 – clang database generator (cvsweb github mirror)

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.
WWW: https://github.com/rizsotto/Bear

Readme

+-----------------------------------------------------------------------
| Running ${PKGSTEM} 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 -- make

The output file called compile_commands.json is saved in the current directory.

Maintainer

Rafael Sadowski

Only for arches

aarch64 alpha amd64 arm hppa i386 mips64 mips64el powerpc powerpc64 riscv64 sparc64

Categories

devel

Library dependencies

Build dependencies

Files

Search