bear
A tool to generate compilation databases for
clangtooling. More information: https://github.com/rizsotto/Bear.
- Generate
compile_commands.jsonby running a build command:
bear --
- Generate compilation database with a custom output file name:
bear --output --
- Append results to an existing
compile_commands.jsonfile:
bear --append --
- Run in verbose mode to get detailed output:
bear --verbose --
- Force
bearto use the preload method for command interception:
bear --force-preload --
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
