macOS
brew install clang-formatlocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de clang-format pour les workflows d'agents IA.
installation
brew install clang-formatlocal Homebrew formula metadata
sudo apt install clang-formatDebian stable package indexes · clang-format · Source: deb.debian.org
sudo dnf install git-clang-formatFedora Rawhide package metadata · git-clang-format · Source: dl.fedoraproject.org
aperçu
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
historique
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.
posture de sécurité
Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour clang-format. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
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-formatexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
clang-format | cli | exécutable global | |
git-clang-format | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/llvm/llvm-project
métadonnées d'installation
| Clé du paquet | brew:clang-format |
|---|---|
| Version | 22.1.8 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/clang-format |
| Page d'accueil | https://clang.llvm.org/docs/ClangFormat.html |
| Dépôt | https://github.com/llvm/llvm-project |
| Docs amont | https://clang.llvm.org/docs/ClangFormat.html |
| Licence | Apache-2.0 WITH LLVM-exception |
| Archive source | https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz |
| Dernière mise à jour | 2026-06-16T19:45:28Z |
| Pulse | updated |
| Dépendances de compilation | cmake |
| Bibliothèques fournies par macOS | python |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-formatpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.