macOS
brew install clang-formatlocal Homebrew formula metadata
brew
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript. Version 22.1.8 via Homebrew; verified 2026-06-16.
install
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
overview
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
history
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.
security posture
No matching local secret-handling manifest was found for clang-format. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to 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-formatexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
clang-format | cli | global executable | |
git-clang-format | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/llvm/llvm-project
install metadata
| Package key | brew:clang-format |
|---|---|
| Version | 22.1.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/clang-format |
| Homepage | https://clang.llvm.org/docs/ClangFormat.html |
| Repository | https://github.com/llvm/llvm-project |
| Upstream docs | https://clang.llvm.org/docs/ClangFormat.html |
| License | Apache-2.0 WITH LLVM-exception |
| Source archive | https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz |
| Last updated | 2026-06-16T19:45:28Z |
| Pulse | updated |
| Build dependencies | cmake |
| Uses from macOS | python |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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-formatsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.