pmccabe
« Back to VersTracker
Description:
Calculate McCabe-style cyclomatic complexity for C/C++ code
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cyclomatic-complexity code-quality static-analysis c c++ metrics
Install: brew install pmccabe
About:
Pmccabe is a command-line utility that calculates McCabe's cyclomatic complexity metrics for C and C++ source files. It provides detailed analysis of function complexity, file-level metrics, and overall project structure to help identify overly complex code. This tool aids developers in quantifying code maintainability and pinpointing areas that may require refactoring.
Key Features:
  • Calculates McCabe cyclomatic complexity for C/C++ functions
  • Reports file-level and project-level complexity metrics
  • Outputs machine-readable data for integration with other tools
  • Supports analysis of multiple files in a single run
Use Cases:
  • Identifying high-risk functions during code reviews
  • Establishing complexity thresholds in CI/CD pipelines
  • Generating complexity reports for legacy codebases
Alternatives:
  • lizard – Lizard supports multiple languages beyond C/C++ and offers more detailed metrics like token count and parameter count.
  • radon – Radon is Python-specific but provides similar complexity analysis (cyclomatic and maintainability index) for Python code.
Version History
Detected Version Rev Change Commit
Sep 16, 2025 12:21pm 0 VERSION_BUMP ffb6ddc8