8000 Added suggestions for usage of cppcheck: use --check-config, use -j1 … · windoro/cppbestpractices@64578e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64578e8

Browse files
committed
Added suggestions for usage of cppcheck: use --check-config, use -j1 for detection of unused functions, use --force for checking all #ifdef.
1 parent 2bbcaf6 commit 64578e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02-Use_the_Tools_Available.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ The best bet is the static analyzer that you can run as part of your automated b
167167
[PVS-Studio](http://www.viva64.com/en/pvs-studio/) is a tool for bug detection in the source code of programs, written in C, C++ and C#. It is free for personal academic projects, open source non-commercial projects and independent projects of individual developers. It works in Windows and Linux environment.
168168

169169
### Cppcheck
170-
[Cppcheck](http://cppcheck.sourceforge.net/) is free and open source. It strives for 0 false positives and does a good job at it. Therefore all warnings should be enabled: `--enable=all`
170+
[Cppcheck](http://cppcheck.sourceforge.net/) is free and open source. It strives for 0 false positives and does a good job at it. Therefore all warnings should be enabled: `--enable=all`. For correct work it requires well formed path for headers, so before usage don't forget pass: `--check-config`. If you try to found unused functions don't use `-j` with more than 1. Remember to add `--force` for code with a lot number of `#ifdef` if you need check all of them.
171171

172172
### Clang's Static Analyzer
173173

0 commit comments

Comments
 (0)
0