mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 04:52:36 +02:00
doc: Show how less noisy clang-tidy output can be achieved
This commit is contained in:
parent
40c6c85c05
commit
54c4d03578
@ -217,11 +217,14 @@ apt install clang-tidy bear clang
|
|||||||
Then, pass clang as compiler to configure, and use bear to produce the `compile_commands.json`:
|
Then, pass clang as compiler to configure, and use bear to produce the `compile_commands.json`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./autogen.sh && ./configure CC=clang CXX=clang++
|
./autogen.sh && ./configure CC=clang CXX=clang++ --enable-suppress-external-warnings
|
||||||
make clean && bear make -j $(nproc) # For bear 2.x
|
make clean && bear --config src/.bear-tidy-config -- make -j $(nproc)
|
||||||
make clean && bear -- make -j $(nproc) # For bear 3.x
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The output is denoised of errors from external dependencies and includes with
|
||||||
|
`--enable-suppress-external-warnings` and `--config src/.bear-tidy-config`. Both
|
||||||
|
options may be omitted to view the full list of errors.
|
||||||
|
|
||||||
To run clang-tidy on all source files:
|
To run clang-tidy on all source files:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
Loading…
Reference in New Issue
Block a user