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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/cppcheck | 2.21.1 |
| OpenBSD | devel/cppcheck | 2.18.0 |
| NetBSD | devel/cppcheck | 2.8nb24 |
| DragonFly | devel/cppcheck | 2.17.1_1 |
| MidnightBSD | devel/cppcheck | 2.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.21.1 | 2.21.1 | - | 2.18.0 | 2.21.1 |
| FreeBSD:14:quarterly | 2.21.1 | 2.21.1 | n/a | 2.17.1_1 | 2.21.1 |
| FreeBSD:15:latest | 2.21.1 | 2.21.1 | n/a | 2.18.0 | 2.18.0 |
| FreeBSD:15:quarterly | 2.21.1 | 2.21.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.21.1 | 2.21.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
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
The full lists below include those, and their dependencies in turn.
Build dependencies 145
- accessibility/at-spi2-core
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/zstd
- converters/fribidi
- converters/libiconv
- databases/gdbm
- databases/postgresql18-client
- databases/qt6-base_sqldriver
- databases/sqlite3
- devel/boost-libs
- devel/cmake-core
- devel/dbus
- devel/dbus-glib
- devel/double-conversion
- devel/gettext-runtime
- devel/glib20
- devel/gobject-introspection
- devel/gsettings-desktop-schemas
- devel/icu
- devel/json-glib
- devel/jsoncpp
- devel/libb2
- devel/libdaemon
- devel/libdatrie
- devel/libedit
- devel/libepoll-shim
- devel/libevdev
- devel/libevent
- devel/libffi
- devel/libgudev
- devel/libgusb
- devel/libinotify
- devel/libmtdev
- devel/libpciaccess
- devel/libthai
- devel/libudev-devd
- devel/libunistring
- devel/libuv
- devel/llvm19
- devel/ninja
- devel/pcre
- devel/pcre2
- devel/py-evdev
- devel/py-libevdev
- devel/py-packaging
- devel/py-pyudev
- devel/py-setuptools
- devel/py-six
- devel/qt6-base
- devel/qt6-tools
- devel/readline
- dns/libidn2
- graphics/cairo
- graphics/colord
- graphics/gdk-pixbuf2
- graphics/graphite2
- graphics/gtk-update-icon-cache
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/lerc
- graphics/libdrm
- graphics/libepoxy
- graphics/libglvnd
- graphics/librsvg2-rust
- graphics/png
- graphics/qt6-svg
- graphics/tiff
- graphics/vulkan-loader
- graphics/wayland
- lang/duktape-lib
- lang/lua54
- lang/perl5.42
- lang/python312
- lang/python315
- lang/tcl86
- math/libtommath
- math/mpdecimal
- misc/hicolor-icon-theme
- misc/hwdata
- misc/shared-mime-info
- multimedia/dav1d
- net/avahi-app
- ports-mgmt/pkg
- print/cups
- print/freetype2
- print/harfbuzz
- print/indexinfo
- print/libpaper
- security/libgcrypt
- security/libgpg-error
- security/rhash
- sysutils/gnome_subr
- sysutils/polkit
- textproc/docbook
- textproc/docbook-sgml
- textproc/docbook-xml
The first 100 are listed.
Run dependencies 120
- accessibility/at-spi2-core
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/zstd
- converters/fribidi
- converters/libiconv
- databases/gdbm
- databases/sqlite3
- devel/dbus
- devel/dbus-glib
- devel/double-conversion
- devel/gettext-runtime
- devel/glib20
- devel/gobject-introspection
- devel/gsettings-desktop-schemas
- devel/icu
- devel/json-glib
- devel/libb2
- devel/libdaemon
- devel/libdatrie
- devel/libedit
- devel/libepoll-shim
- devel/libevdev
- devel/libevent
- devel/libffi
- devel/libgudev
- devel/libgusb
- devel/libinotify
- devel/libmtdev
- devel/libpciaccess
- devel/libthai
- devel/libudev-devd
- devel/pcre
- devel/pcre2
- devel/py-evdev
- devel/py-libevdev
- devel/py-packaging
- devel/py-pyudev
- devel/py-setuptools
- devel/py-six
- devel/qt6-base
- devel/readline
- graphics/cairo
- graphics/colord
- graphics/gdk-pixbuf2
- graphics/graphite2
- graphics/gtk-update-icon-cache
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/lerc
- graphics/libdrm
- graphics/libepoxy
- graphics/libglvnd
- graphics/librsvg2-rust
- graphics/png
- graphics/tiff
- graphics/vulkan-loader
- graphics/wayland
- lang/duktape-lib
- lang/lua54
- lang/perl5.42
- lang/python312
- lang/python315
- lang/tcl86
- math/libtommath
- math/mpdecimal
- misc/hicolor-icon-theme
- misc/hwdata
- misc/shared-mime-info
- multimedia/dav1d
- net/avahi-app
- print/cups
- print/freetype2
- print/harfbuzz
- print/indexinfo
- print/libpaper
- sysutils/gnome_subr
- sysutils/polkit
- textproc/expat2
- textproc/libxml2
- textproc/py-pygments
- textproc/tinyxml2
- x11-fonts/fontconfig
- x11-fonts/libXft
- x11-themes/adwaita-icon-theme
- x11-themes/adwaita-icon-theme-legacy
- x11-toolkits/gtk30
- x11-toolkits/pango
- x11/libICE
- x11/libSM
- x11/libX11
- x11/libXau
- x11/libXcomposite
- x11/libXcursor
- x11/libXdamage
- x11/libXdmcp
- x11/libXext
The first 100 are listed.
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 | Build and/or install manual pages |
| MATCHCOMPILER | on | Build-time optimizations via Python |
| RULES | on | User-defined rule support (requires PCRE) |
| TEST | off | Build 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
| File | Size | SHA256 |
|---|---|---|
| danmar-cppcheck-2.21.1_GH0.tar.gz | 4.029648e+06 | ba750bd872ad7c01f951ff2d9dc8c68ea5852654545ec7a62a4c318d690c8e22 |