BSD Ports

devel/cppcheck 2.21.1 FreeBSD

Tool for static C/C++ code analysis

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
5289423680
License
GPLv3+
Categories
devel
Package size
2854.4 KiB, 15934.9 KiB installed

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

Install

Binary package:

pkg install cppcheck

From the ports tree:

cd /usr/ports/devel/cppcheck/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	cppcheck>0:devel/cppcheck

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.21.12.21.1-2.18.02.21.1
FreeBSD:14:quarterly2.21.12.21.1n/a2.17.1_12.21.1
FreeBSD:15:latest2.21.12.21.1n/a2.18.02.18.0
FreeBSD:15:quarterly2.21.12.21.1n/an/an/a
FreeBSD:16:latest2.21.12.21.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Library 1

The full lists below include those, and their dependencies in turn.

Build dependencies 145

The first 100 are listed.

Run dependencies 120

The first 100 are listed.

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
MANPAGESonBuild and/or install manual pages
MATCHCOMPILERonBuild-time optimizations via Python
RULESonUser-defined rule support (requires PCRE)
TESToffBuild and/or run tests
USES
compiler:c++11-lib cpe shebangfix tar:bzip2
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.21.1_GH0.tar.gz4.029648e+06ba750bd872ad7c01f951ff2d9dc8c68ea5852654545ec7a62a4c318d690c8e22

Commit history 1

DateCommitCreditsLog message
5289423680 Dmitry Marakasov devel/cppcheck: update 2.21.0 → 2.21.1