1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 18:55:27 +02:00

bear: add page (#14270)

Co-authored-by: Sebastiaan Speck +sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Shou-Chi Chen 2024-10-20 19:20:27 +08:00 committed by GitHub
parent 6581a95f4d
commit bc9598b02f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
pages/common/bear.md Normal file
View file

@ -0,0 +1,24 @@
# bear
> A tool to generate compilation databases for `clang` tooling.
> More information: <https://github.com/rizsotto/Bear>.
- Generate `compile_commands.json` by 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.json` file:
`bear --append -- {{make}}`
- Run in verbose mode to get detailed output:
`bear --verbose -- {{make}}`
- Force `bear` to use the preload method for command interception:
`bear --force-preload -- {{make}}`