bear
A tool to generate compilation databases for clang tooling. tldr-pages
On several platforms
Several platforms
Generate compile_commands.json by running a build command
bear -- makeIdentifyGenerate compilation database with a custom output file name
bear --output path/to/compile_commands.json -- makeIdentifyAppend results to an existing compile_commands.json file
bear --append -- makeIdentifyRun in verbose mode to get detailed output
bear --verbose -- makeIdentifyForce bear to use the preload method for command interception
bear --force-preload -- makeIdentify