macOS
brew install cdecllocal Homebrew formula metadata
sudo port install cdeclMacPorts ports tree · devel/cdecl/Portfile · 来源: api.github.com
安装
brew install cdecllocal Homebrew formula metadata
sudo port install cdeclMacPorts ports tree · devel/cdecl/Portfile · 来源: api.github.com
sudo dnf install cdeclFedora Rawhide package metadata · cdecl · 来源: dl.fedoraproject.org
nix profile install nixpkgs#cdeclnixpkgs package indexes · pkgs/by-name/cd/cdecl/package.nix · 来源: api.github.com
sudo zypper install cdeclopenSUSE Tumbleweed package metadata · cdecl · 来源: download.opensuse.org
概览
Turn English phrases to C or C++ declarations
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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/cdeclrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
c++decl | cli | 全局可执行文件 | |
cdecl | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/paul-j-lucas/cdecl
安装元数据
| 软件包键 | brew:cdecl |
|---|---|
| 版本 | 18.7.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cdecl |
| 主页 | https://github.com/paul-j-lucas/cdecl |
| 仓库 | https://github.com/paul-j-lucas/cdecl |
| 上游文档 | https://github.com/paul-j-lucas/cdecl#readme |
| 许可证 | GPL-3.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Homebrew-public-domain |
| 源码归档 | https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-18.7.2/cdecl-18.7.2.tar.gz |
| macOS 提供的库 | ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 cdecl来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.