macOS
brew install pmccabelocal Homebrew formula metadata
brew / rank 9986
Calculate McCabe-style cyclomatic complexity for C/C++ code. Version 2.9 via Homebrew; verified 2026-09-11. Also installable with debian: sudo apt install pmccabe.
install
brew install pmccabelocal Homebrew formula metadata
sudo apk add pmccabeAlpine Linux edge package indexes · pmccabe · source: dl-cdn.alpinelinux.org
sudo apt install pmccabeDebian stable package indexes · pmccabe · source: deb.debian.org
nix profile install nixpkgs#pmccabenixpkgs package indexes · pkgs/by-name/pm/pmccabe/package.nix · source: api.github.com
sudo zypper install pmccabeopenSUSE Tumbleweed package metadata · pmccabe · source: download.opensuse.org
overview
Calculate McCabe-style cyclomatic complexity for C/C++ code
history
pmccabe is a compact command-line analyzer that calculates McCabe-style cyclomatic complexity and source-line statistics for C and C++ code.
The current official GitLab project was created in January 2021 and maintains pmccabe as a command-line implementation of McCabe-style complexity and line-count analysis for C and C++.
pmccabe is distributed by several Unix-oriented package ecosystems, including Homebrew, Debian, Ubuntu, Alpine, Nix, and openSUSE, making the small command-line analyzer readily available in development and build environments.
Developers run pmccabe against C or C++ sources to identify functions with high control-flow complexity and to collect line-count measurements. Its companion executables support related source-processing tasks such as decommenting and reporting code changes.
pmccabe represents the Unix tradition of narrowly focused source-analysis tools: it is scriptable, operates directly on C and C++ source, and exposes a classic software metric without requiring a larger analysis platform.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
codechanges | cli | global executable | |
decomment | cli | global executable | |
pmccabe | cli | global executable | |
vifn | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gitlab.com/pmccabe/pmccabe
install metadata
| Package key | brew:pmccabe |
|---|---|
| Version | 2.9 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pmccabe |
| Homepage | https://gitlab.com/pmccabe/pmccabe |
| Upstream docs | https://gitlab.com/pmccabe/pmccabe |
| License | GPL-2.0-or-later |
| Source archive | https://gitlab.com/pmccabe/pmccabe/-/archive/v2.9/pmccabe-v2.9.tar.bz2 |
| Last updated | 2026-09-11T13:10:48Z |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pmccabe |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pmccabe 2.8-3
McCabe-style function complexity and line counting for C and C++
https://gitlab.com/pmccabe/pmccabe
sudo apt install pmccabepmccabe
nix profile install nixpkgs#pmccabepmccabe 2.8-3
McCabe-style function complexity and line counting for C and C++
https://gitlab.com/pmccabe/pmccabe
sudo apt install pmccabepmccabe 2.8-r1
McCabe-style complexity and line counting for C and C++
https://gitlab.com/pmccabe/pmccabe
sudo apk add pmccabepmccabe-doc 2.8-r1
McCabe-style complexity and line counting for C and C++ (documentation)
https://gitlab.com/pmccabe/pmccabe
sudo apk add pmccabe-docpmccabe 2.8-1.17
McCabe-style complexity and line counting for C and C++
https://gitlab.com/jas/pmccabe
sudo zypper install pmccabesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.