devel/cppcheck 2.20.0_1 MidnightBSD
Tool for static C/C++ code analysis
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Last update
- Commit
22173208f1- License
- gpl3+
- Categories
- devel
Description
Cppcheck is a tool for static C/C++ code analysis. It tries to detect bugs that your compiler does not see. It checks for: memory leaks, mismatching allocations-deallocations, buffer overruns, and many more.
Cppcheck is versatile. You can check non-standard code that includes various compiler extensions, inline assembly code, etc.
The goal is to have no false positives.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/cppcheck | 2.20.0_1 |
| FreeBSD | devel/cppcheck | 2.21.1 |
| OpenBSD | devel/cppcheck | 2.18.0 |
| NetBSD | devel/cppcheck | 2.8nb24 |
| DragonFly | devel/cppcheck | 2.17.1_1 |
Install
Binary package:
mport install cppcheck
From mports:
cd /usr/mports/devel/cppcheck && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= cppcheck>0:devel/cppcheck
Dependencies
As this port's Makefile names them.
Build 1
${LOCALBASE}/include/boost/container/small_vector.hpp: devel/boost-libs
Library 1
libtinyxml2.so: textproc/tinyxml2
Build dependencies 2
Run dependencies 1
No port depends on this one.
Configuration
Options name: devel_cppcheck
| Option | Default | Description |
|---|---|---|
| CHARTS | off | Enable QtCharts usage in the GUI |
| GUI | on | Build the Qt GUI application |
| HTMLREPORT | on | Install cppcheck-htmlreport |
| MANPAGES | on | |
| MATCHCOMPILER | on | Build-time optimizations via Python |
| RULES | on | User-defined rule support (requires PCRE) |
| TEST | off |
- USES
- compiler:c++11-lib shebangfix tar:bzip2 cpe
- Service scripts
- none
Files
Manual pages 1
- cppcheck(1)
pkg-plist 7
- bin/cppcheck
- bin/cppcheck-gui
- bin/cppcheck-htmlreport
- share/applications/cppcheck-gui.desktop
- share/icons/hicolor/64x64/apps/cppcheck-gui.png
- share/icons/hicolor/scalable/apps/cppcheck-gui.svg
- share/man/man1/cppcheck.1.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| danmar-cppcheck-2.20.0_GH0.tar.gz | 4.007393e+06 | 7be7992439339017edb551d8e7d2315f9bb57c402da50c2cee9cd0e2724600a1 |