# clang-format mit Homebrew, apt, dnf installieren

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

## Installation

```sh
sudo av install brew:clang-format
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install clang-format
```

  Evidenz: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install clang-format
```

  Evidenz: Debian stable package indexes: clang-format from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install git-clang-format
```

  Evidenz: 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

## Paketfakten

- **Paketschlüssel:** brew:clang-format
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/clang-format>
- **Version:** 22.1.8
- **Quellzusammenfassung:** Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
- **Homepage:** <https://clang.llvm.org/docs/ClangFormat.html>
- **Repository:** <https://github.com/llvm/llvm-project>
- **Upstream-Dokumentation:** <https://clang.llvm.org/docs/ClangFormat.html>
- **Lizenz:** Apache-2.0 WITH LLVM-exception
- **Quellarchiv:** <https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz>
- **Zuletzt aktualisiert:** 2026-06-16T19:45:28Z
- **Generiert:** 2026-07-10T07:20:53+00:00

## Executables

- clang-format (cli)
- git-clang-format (cli)
- clang-format (Alias)
- git-clang-format (Alias)

## Build-Abhängigkeiten

- cmake

## Von macOS bereitgestellte Bibliotheken

- python

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-07-10
- Manager-Version: 22.1.8
- Manager aktualisiert: 2026-06-16
- lokale Daten: OK
- Upstream-Repository: https://github.com/llvm/llvm-project
- Info: No cached GitHub release or tag data was available.
## 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.

### Quellen

- <https://clang.llvm.org/docs/ClangFormat.html>
- <https://github.com/llvm/llvm-project>
- <https://releases.llvm.org/3.3/tools/clang/docs/ClangFormat.html>
- <https://releases.llvm.org/3.4/tools/clang/docs/ClangFormat.html>
- <https://releases.llvm.org/11.1.0/tools/clang/docs/ReleaseNotes.html>


## Sicherheitshinweise

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.



## 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

- Unix: .clang-format, _clang-format
## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clang-format
- **Aliases:** clang-format@22
- **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:** head, stable

## Andere Paketmanager-Einträge

- Debian apt - clang-format - 1:19.0-63: normalized package name match | Debian stable package indexes: clang-format from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tool to format C/C++/Obj-C code
- Ubuntu apt - clang-format - 1:18.0-59~exp2: normalized package name match | Ubuntu 24.04 LTS package indexes: clang-format from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tool to format C/C++/Obj-C code
- dnf - git-clang-format - 22.1.7-1.fc45: installed executable or alias match | 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 | Integration of clang-format for git | http://llvm.org


## Verwandte Links

- [Language runtime packages](https://www.automicvault.com/de/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/de/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/de/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [Web development packages](https://www.automicvault.com/de/pkg/web-dev-tools/) - Matched web development metadata.
- [cmake](https://www.automicvault.com/de/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [clang-format@11](https://www.automicvault.com/de/pkg/brew/clang-format-11/) - Package name indicates the same formula family.
- [flang](https://www.automicvault.com/de/pkg/brew/flang/) - Shares the same upstream source repository.
- [lld](https://www.automicvault.com/de/pkg/brew/lld/) - Shares the same upstream source repository.
- [clang-format](https://www.automicvault.com/de/pkg/npm/clang-format/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/clang-format.yml](https://github.com/automic-vault/db/blob/main/combined/clang-format.yml)


## Quellen

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