BSD Ports

devel/pmccabe 2.5 NetBSD

Measures the McCabe cyclomatic complexity of C and C++

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Categories
devel
Package size
25.9 KiB, 79.0 KiB installed

Description

pmccabe processes the named files, or standard input if none are named, calculating statistics including McCabe cyclomatic complexity for each function found. The files are expected to be either C (ANSI or K&R) or C++.

pmccabe ignores all cpp preprocessor directives - calculating the complexity of the appearance of the code rather than the complexity after the preprocessor mangles the code. This is especially important since simple things like getchar(3) expand into macros which increase complexity.

In the other systems

The newest version among them is 2.6, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDdevel/pmccabe2.5none known-[email protected]-
FreeBSDdevel/pmccabe2.6_1 newestnone known-[email protected]-
DragonFlydevel/pmccabe2.6_1 newestnone known-[email protected]-
HardenedBSDdevel/pmccabe2.6_1 newestno data-[email protected]-
GhostBSDdevel/pmccabe2.6_1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkgin install pmccabe

From pkgsrc:

cd /usr/pkgsrc/devel/pmccabe && make install clean

Packages

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

RepositoryVersion
NetBSD 10.1 x86_642.5
NetBSD 10.1 aarch642.5
SmartOS / illumos x86_642.5
macOS 15 arm642.5

Dependencies

No port depends on this one.