Cppcheck is a static analysis tool for discovering bugs in C and C++ codebases, even when a non-standard syntax is used.
By implementing coding standards such as Mistra C 2012 and providing extensibility with custom rules, it detects dangerous coding constructs such as buffer overflows, NULL pointer dereferences, and divisions by zero. At the same time, Cppcheck tries to minimise the false positive rates.
Notice: If you want to view the officially recommended method of installing of the tool, refer to the Cppcheck documentation.
The goal of this repository is to package Cppcheck as a community snap that can be effortlessly installed across a variety of Linux distributions.
- Clone this repository:
git clone https://github.com/iosifache/cppcheck-snap
- Move into the cloned repository:
cd cppcheck-snap
- Install Snapcraft:
sudo snap install snapcraft --classic
- Build the snap:
snapcraft --verbose
- Install the snap:
snap install --dangerous ./cppcheck_*.snap
- Test the snap by running the
cppcheck
command:cppcheck