build: suppress external warnings by default

This commit is contained in:
fanquake
2023-06-12 13:56:36 +01:00
parent 7a59865793
commit 3b2acfcfec
3 changed files with 6 additions and 8 deletions

View File

@ -217,13 +217,11 @@ apt install clang-tidy bear clang
Then, pass clang as compiler to configure, and use bear to produce the `compile_commands.json`:
```sh
./autogen.sh && ./configure CC=clang CXX=clang++ --enable-suppress-external-warnings
./autogen.sh && ./configure CC=clang CXX=clang++
make clean && bear --config src/.bear-tidy-config -- make -j $(nproc)
```
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.
The output is denoised of errors from external dependencies.
To run clang-tidy on all source files: