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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| NetBSD | devel/pmccabe | 2.5 | none known | - | [email protected] | - |
| FreeBSD | devel/pmccabe | 2.6_1 newest | none known | - | [email protected] | - |
| DragonFly | devel/pmccabe | 2.6_1 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/pmccabe | 2.6_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/pmccabe | 2.6_1 newest | no data | - | [email protected] | - |
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.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 2.5 |
| NetBSD 10.1 aarch64 | 2.5 |
| SmartOS / illumos x86_64 | 2.5 |
| macOS 15 arm64 | 2.5 |
Dependencies
No port depends on this one.