cproto
« Back to VersTracker
Description:
Generate function prototypes for functions in input files
Type: Formula  |  Latest Version: 4.7y@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c c++ code-generation legacy prototypes
Install: brew install cproto
About:
cproto scans C, C++, and Lex/Yacc source files to automatically generate function prototypes. It analyzes function definitions and declarations to produce ANSI C or traditional K&R style prototypes. This tool is invaluable for maintaining header files and modernizing legacy codebases.
Key Features:
  • Supports C, C++, Lex, and Yacc source files
  • Generates ANSI C or K&R style prototypes
  • Handles function declarations across multiple files
  • Outputs to stdout for easy redirection to header files
Use Cases:
  • Generating header files from existing C source code
  • Modernizing legacy K&R C code to ANSI C standards
  • Verifying function signatures across a large codebase
Alternatives:
  • cscope – cscope is for code navigation, while cproto specifically generates prototypes
  • Doxygen – Doxygen generates full documentation, cproto focuses on raw prototypes
License: LicenseRef-Homebrew-public-domain
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 8:23pm 0 VERSION_BUMP 2741d649