Cppcheck is a static analyser for C and C++ source code. It looks for the kinds of bugs that ordinary compilers usually let through, and it does not report syntax errors, which the compiler already handles. It is aimed at developers who want their code checked without wading through false alarms.
The stated goal is to report only real errors, with zero false positives. It is released under the GPL-3.0 licence, its source code is public on GitHub, and it is available for Windows.
Alternatives to Cppcheck
Products that do a similar job in Developer Tools.
PHP_CodeSniffer
Command-line checker that flags PHP code against coding standards
ShellCheck
Static analysis linter for bash and other shell scripts
SonarQube CLI
command-line client for SonarQube code quality and security scans
reviewdog
Posts linter output as code review comments on pull requests
jscpd
Finds duplicated code blocks across source files in many languages
CMake
Cross-platform build system generator for C and C++ projects
CLion
C and C++ IDE for macOS
Qt Creator
Cross-platform IDE for building applications with the Qt framework