Automic VaultAutomic Vault

brew

clang-format mit Homebrew, apt, dnf installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für clang-format in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install clang-format

local Homebrew formula metadata

Linux

Debian aptverifiziert · 92%
sudo apt install clang-format

Debian stable package indexes · clang-format · Quelle: deb.debian.org

Fedora dnfverifiziert · 92%
sudo dnf install git-clang-format

Fedora Rawhide package metadata · git-clang-format · Quelle: dl.fedoraproject.org

Überblick

Paketzusammenfassung

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

Befehle und Aliase

  • clang-format
  • git-clang-format

Verlauf

Projektgeschichte und Nutzung

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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 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.

Sicherheitslage

Noch keine Protected-Tool-Abdeckung gefunden

Für clang-format wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Build-Metadaten listen 1 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

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

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
clang-formatcliglobales Executable
git-clang-formatcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-10
Manager-Version22.1.8
Manager aktualisiert2026-06-16
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://github.com/llvm/llvm-project

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:clang-format
Version22.1.8
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/clang-format
Homepagehttps://clang.llvm.org/docs/ClangFormat.html
Repositoryhttps://github.com/llvm/llvm-project
Upstream-Dokumentationhttps://clang.llvm.org/docs/ClangFormat.html
LizenzApache-2.0 WITH LLVM-exception
Quellarchivhttps://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz
Zuletzt aktualisiert2026-06-16T19:45:28Z
Pulseupdated
Build-Abhängigkeitencmake
Von macOS bereitgestellte Bibliothekenpython
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

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 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 1 stellt bereit
  • installed executable or alias match
  • Abgeglichen nach: 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

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • 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