clang-format
brew install clang-formatAlso known as: clang-format@23
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
https://clang.llvm.org/docs/ClangFormat.html
License: Apache-2.0 WITH LLVM-exception
Development: Pull requests
Formula JSON API: /api/formula/clang-format.json
Formula code: clang-format.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 23.1.6 |
| head | ⚡️ | HEAD |
Other versions:
| clang-format@11 | 11.1.0 | Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript |
Depends on when building from source:
| cmake | 4.5.1 | Cross-platform make |
Uses from macOS: python
Binaries:
clang-format,
git-clang-format
GitHub Packages downloads:
| Last 30 days | 87,486 |
|---|---|
| Downloads | 4,262,674 |
| Analytics install events (30 days) | 6,787 |
| Downloads / install events (30 days) | 12.9× |
Source: GitHub Packages, fetched 2026-11-22T01:00:37Z. Analytics dates: 2026-10-23 to 2026-11-22. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 6,774 | 18,309 | 81,421 |
Installs (--HEAD) | 13 | 31 | 129 |
| Installs on Request | 6,621 | 17,862 | 75,729 |
Installs on Request (--HEAD) | 13 | 31 | 128 |
| Build Errors | 6 |