BSD Ports

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

SystemPortVersion
MidnightBSDdevel/cppcheck2.20.0_1
FreeBSDdevel/cppcheck2.21.1
OpenBSDdevel/cppcheck2.18.0
NetBSDdevel/cppcheck2.8nb24
DragonFlydevel/cppcheck2.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

Library 1

Build dependencies 2
Run dependencies 1

No port depends on this one.

Configuration

Options name: devel_cppcheck

OptionDefaultDescription
CHARTSoffEnable QtCharts usage in the GUI
GUIonBuild the Qt GUI application
HTMLREPORTonInstall cppcheck-htmlreport
MANPAGESon
MATCHCOMPILERonBuild-time optimizations via Python
RULESonUser-defined rule support (requires PCRE)
TESToff
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
FileSizeSHA256
danmar-cppcheck-2.20.0_GH0.tar.gz4.007393e+067be7992439339017edb551d8e7d2315f9bb57c402da50c2cee9cd0e2724600a1

Commit history 1

DateCommitCreditsLog message
22173208f1 Lucas Holt */*: add CPE identifiers from the matching FreeBSD ports
mport audit matches installed packages against sec.midnightbsd.org by CPE, so a port without one is invisible to it regardless of how vulnerable it is. These 126 ports had no CPE while the corresponding FreeBSD port did, so the vendor and product were copied from there rather than guessed. Sampled against the audit API to confirm the identifiers resolve, e.g. cad/gtkwave tonybybell:gtkwave 82 CVEs archivers/libunrar rarlab:unrar 12 audio/espeak-ng espeak-ng:espeak-ng 5 archivers/minizip-ng zlib-ng:minizip-ng 3 audio/faust grame:faust 3 cad/admesh admesh_project:admesh 3 Three ports were deliberately skipped: archivers/p5-Archive-Tar, …