macOS
brew install cdecllocal Homebrew formula metadata
sudo port install cdeclMacPorts ports tree · devel/cdecl/Portfile · source: api.github.com
brew
Turn English phrases to C or C++ declarations. Version 18.7.2 via Homebrew; verified from local package data.
install
brew install cdecllocal Homebrew formula metadata
sudo port install cdeclMacPorts ports tree · devel/cdecl/Portfile · source: api.github.com
sudo apt install cdeclDebian stable package indexes · cdecl · source: deb.debian.org
sudo dnf install cdeclFedora Rawhide package metadata · cdecl · source: dl.fedoraproject.org
nix profile install nixpkgs#cdeclnixpkgs package indexes · pkgs/by-name/cd/cdecl/package.nix · source: api.github.com
sudo zypper install cdeclopenSUSE Tumbleweed package metadata · cdecl · source: download.opensuse.org
overview
Turn English phrases to C or C++ declarations
history
cdecl is a classic command-line helper for translating between C or C++ declarations and pseudo-English descriptions. The current maintained version also helps develop and debug C preprocessor macros.
The upstream README says cdecl was originally written by Graham Ross sometime in the mid-1980s, and that Tony Hansen posted source with his changes to comp.sources.unix in 1988. The AUTHORS file records a long chain of contributors who added ANSI C, C++ declarations, GNU readline support, Apple blocks, and modern C/C++ language support.
Paul J. Lucas's maintained codebase was created on GitHub in 2017. The README says this codebase fixes deficiencies in earlier versions and adds many features, including Autotools, long options, modern C and C++ language distinctions through C23/C++26, macro expansion, better diagnostics, and extensive type support.
cdecl is one of those small developer tools that survives because C declarator syntax remains hard to read. The Homebrew input records packages in Homebrew, Debian/Ubuntu, Fedora, MacPorts, Nix, and openSUSE-family packaging, matching its role as a long-running Unix developer aid.
Users can run cdecl interactively, pass declarations on the command line, read standard input, or invoke it as c++decl. It explains declarations such as pointers to arrays and emits declarations from English-like commands. The current version also expands macros step by step for preprocessor debugging.
cdecl is package-nerd catnip because it carries living Unix history: mid-1980s origins, 1988 Usenet distribution, unclear inherited source licensing, and modern maintenance that teaches new C and C++ standards to an old interface. It is tiny, weird, useful, and exactly the sort of program distributions keep around.
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.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.cdeclrc$XDG_CONFIG_HOME/cdecl/cdeclrc~/.config/cdecl/cdeclrc$XDG_CONFIG_DIRS/*/cdecl/cdeclrc/etc/xdg/cdecl/cdeclrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
c++decl | cli | global executable | |
cdecl | 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://github.com/paul-j-lucas/cdecl
install metadata
| Package key | brew:cdecl |
|---|---|
| Version | 18.7.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cdecl |
| Homepage | https://github.com/paul-j-lucas/cdecl |
| Repository | https://github.com/paul-j-lucas/cdecl |
| Upstream docs | https://github.com/paul-j-lucas/cdecl#readme |
| License | GPL-3.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Homebrew-public-domain |
| Source archive | https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-18.7.2/cdecl-18.7.2.tar.gz |
| Uses from macOS | ncurses |
| 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 | cdecl |
| 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.
cdecl 2.5-15+b1
Turn English phrases to C or C++ declarations
sudo apt install cdeclcdecl
nix profile install nixpkgs#cdeclcdecl 2.5-13.1build2
Turn English phrases to C or C++ declarations
sudo apt install cdeclcdecl 18.7.2-1.fc45
Translator for C gibberish
https://github.com/paul-j-lucas/cdecl/
sudo dnf install cdeclcdecl 18.7.2-1.2
C/C++ function declaration translator
https://github.com/paul-j-lucas/cdecl/
sudo zypper install cdeclcdecl
sudo port install cdeclsource 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.