Automic VaultAutomic Vault

brew

clang-format を Homebrew, apt, dnf でインストール

clang-format のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install clang-format

local Homebrew formula metadata

Linux

Debian apt確認済み · 92%
sudo apt install clang-format

Debian stable package indexes · clang-format · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install git-clang-format

Fedora Rawhide package metadata · git-clang-format · ソース: dl.fedoraproject.org

概要

パッケージ概要

Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript

コマンドとエイリアス

  • clang-format
  • git-clang-format

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2013: Clang 3.3 documentation included clang-format for C/C++/Obj-C.
  • 2014: Clang 3.4 documentation documented multi-file formatting and dump-config support.
  • 2020: LLVM 11 release notes continued adding clang-format style options such as IndentExternBlock.
  • 2026: Current LLVM documentation lists broader language support including Java, JavaScript, JSON, TypeScript, C#, Protobuf, and Objective-C.

Related projects

  • Related projects include LLVM, Clang, LibFormat, git-clang-format, clang-format editor plugins, clangd, and language-specific formatters such as gofmt, rustfmt, black, and prettier.

セキュリティ状態

保護ツール対応はまだ見つかっていません

clang-format に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
.clang-format_clang-format

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
clang-formatcliグローバル実行可能ファイル
git-clang-formatcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版22.1.8
マネージャ更新日2026-06-16
ローカルデータOK
上流not checked
検出された最新未検出

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
Pulseupdated
ビルド依存関係cmake
macOS 提供ライブラリpython
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameclang-format
Aliases
  • clang-format@22
Version Scheme1
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

clang-format 1:19.0-63

Tool to format C/C++/Obj-C code

sudo apt install clang-format
  • Section: devel
  • Architecture: amd64
  • Source Package: llvm-defaults
  • 1 依存関係
  • normalized package name match
  • 一致条件: Clang Format
Debian stable package indexes · deb.debian.org · Debian stable package indexes: clang-format from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

clang-format 1:18.0-59~exp2

Tool to format C/C++/Obj-C code

sudo apt install clang-format
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: llvm-defaults
  • 1 依存関係
  • normalized package name match
  • 一致条件: Clang Format
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: clang-format from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf92%

git-clang-format 22.1.7-1.fc45

Integration of clang-format for git

http://llvm.org

sudo dnf install git-clang-format
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: llvm
  • 4 依存関係
  • 1 提供
  • installed executable or alias match
  • 一致条件: Git Clang Format
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: git-clang-format from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment