File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -217,11 +217,14 @@ apt install clang-tidy bear clang
217
217
Then, pass clang as compiler to configure, and use bear to produce the ` compile_commands.json ` :
218
218
219
219
``` sh
220
- ./autogen.sh && ./configure CC=clang CXX=clang++
221
- make clean && bear make -j $( nproc) # For bear 2.x
222
- make clean && bear -- make -j $( nproc) # For bear 3.x
220
+ ./autogen.sh && ./configure CC=clang CXX=clang++ --enable-suppress-external-warnings
221
+ make clean && bear --config src/.bear-tidy-config -- make -j $( nproc)
223
222
```
224
223
224
+ The output is denoised of errors from external dependencies and includes with
225
+ ` --enable-suppress-external-warnings ` and ` --config src/.bear-tidy-config ` . Both
226
+ options may be omitted to view the full list of errors.
227
+
225
228
To run clang-tidy on all source files:
226
229
227
230
``` sh
You can’t perform that action at this time.
0 commit comments