bear
A tool to generate compilation databases for clang tooling.
More information: https://github.com/rizsotto/Bear.
- Generate
compile_commands.jsonby 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.jsonfile:
bear --append -- make
- Run in verbose mode to get detailed output:
bear --verbose -- make
- Force
bearto use the preload method for command interception:
bear --force-preload -- make