macOS
brew install clang-formatlocal Homebrew formula metadata
brew
clang-format のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install clang-formatlocal Homebrew formula metadata
sudo apt install clang-formatDebian stable package indexes · clang-format · ソース: deb.debian.org
sudo dnf install git-clang-formatFedora Rawhide package metadata · git-clang-format · ソース: dl.fedoraproject.org
概要
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
履歴
clang-format is LLVM/Clang's source formatter and editor-integration tool for C-family and several adjacent languages. It became a standard package-manager dependency because teams can install one CLI and enforce formatting locally, in editors, in Git workflows, and in CI.
LLVM's Clang 3.3 documentation already described ClangFormat as tools built on LibFormat, with a standalone clang-format binary under clang/tools/clang-format. Later documentation expanded language coverage, configuration files, ignore files, and editor integrations.
The supplied package-manager data shows Homebrew, Debian, Fedora/DNF, and Ubuntu packaging. Its adoption is reinforced by direct editor integration in Vim, Emacs, BBEdit, CLion, Visual Studio, and similar tooling documented by LLVM.
Users run clang-format over files or standard input, often with -i for in-place edits. Project style is commonly stored in .clang-format or _clang-format, generated with -dump-config, and found by using -style=file.
clang-format is significant because it decouples source formatting policy from any one IDE. Package managers provide a pinned binary that projects can call from hooks, CI jobs, editor plugins, and language-server-style workflows, making formatting reproducible across operating systems.
セキュリティ状態
clang-format に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
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.
.clang-format_clang-format実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
clang-format | cli | グローバル実行可能ファイル | |
git-clang-format | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/llvm/llvm-project
インストールメタデータ
| パッケージキー | brew:clang-format |
|---|---|
| バージョン | 22.1.8 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/clang-format |
| ホームページ | https://clang.llvm.org/docs/ClangFormat.html |
| リポジトリ | https://github.com/llvm/llvm-project |
| 上流ドキュメント | https://clang.llvm.org/docs/ClangFormat.html |
| ライセンス | Apache-2.0 WITH LLVM-exception |
| ソースアーカイブ | https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz |
| 最終更新 | 2026-06-16T19:45:28Z |
| Pulse | updated |
| ビルド依存関係 | cmake |
| macOS 提供ライブラリ | python |
| 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 | clang-format |
| Aliases |
|
| Version Scheme | 1 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
clang-format 1:19.0-63
Tool to format C/C++/Obj-C code
sudo apt install clang-formatclang-format 1:18.0-59~exp2
Tool to format C/C++/Obj-C code
sudo apt install clang-formatgit-clang-format 22.1.7-1.fc45
Integration of clang-format for git
sudo dnf install git-clang-formatソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.