openvpn/dev-tools
Frank Lichtenheld a71e8508f9 dev-tools: Fix run-cppcheck to cover more code
Massively improve how we call cppcheck to cover
more code and identify more issues.

When specifying any -D argument all other defines
are ignored unless --force or --max-configs is
specified as well. I mistakenly assumed that this
was covered by --check-level=exhaustive. We need
to try finding a value for --max-configs so that
cppcheck doesn't spend hours scanning options.c

Add a library cfg for our code which for now
- identifies some printf-style functions
- adds some common macro defines

Use existing libraries.

Add a second call to cppcheck to separate the
Windows and Unixy code scans. This avoids some
very non-sensical define combinations.

Change-Id: I05720ccc3bcf706bbe62254afb74562580f5de56
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1665
Message-Id: <20260607170713.4980-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg37078.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
2026-06-09 09:09:04 +02:00
..
cppcheck-suppression dev-tools: Fix run-cppcheck to cover more code 2026-06-09 09:09:04 +02:00
gen-release-tarballs.sh Update Copyright statements to 2026 2026-01-08 10:59:57 +01:00
gerrit-send-mail.py Update Copyright statements to 2026 2026-01-08 10:59:57 +01:00
git-pre-commit-format.sh doc: HTTPS upgrades and URL fixes throughout the tree 2025-10-13 17:39:46 +02:00
openvpn-cppcheck-library.cfg dev-tools: Fix run-cppcheck to cover more code 2026-06-09 09:09:04 +02:00
run-cppcheck.sh dev-tools: Fix run-cppcheck to cover more code 2026-06-09 09:09:04 +02:00
update-copyright.sh Update Copyright statements to 2026 2026-01-08 10:59:57 +01:00