Improved detection for expressions like expression % 1 , which always result in zero.
While Homebrew usually carries the latest version, you can install Cppcheck using MacPorts or by building the 2.1 source as shown in the Linux steps above. Key Features of Version 2.1 cppcheck 2.1 download
Once installed, you can use either the ( cppcheck.exe ) or the Graphical User Interface ( cppcheck-gui.exe ). Linux (Building from Source) Improved detection for expressions like expression % 1