Home

The devel/bear port

bear-4.2.2 – 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 && make | bear parse-sh

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

Maintainer

Rafael Sadowski

Categories

devel lang/rust

Build dependencies

Files

Search