clang-format
Install command:
brew install clang-formatAlso known as: clang-format@21
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
https://clang.llvm.org/docs/ClangFormat.html
License: Apache-2.0 WITH LLVM-exception
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 |
tahoe | ✅ |
|---|---|---|
| sequoia | ✅ | |
| sonoma | ✅ | |
| macOS on Intel |
sonoma | ✅ |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ | |
Current versions:
| stable | ✅ | 21.1.5 |
| 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.1.2 | Cross-platform make |
Analytics:
| Installs (30 days) | |
|---|---|
clang-format |
10,335 |
clang-format --HEAD |
12 |
| Installs on Request (30 days) | |
clang-format |
9,304 |
clang-format --HEAD |
12 |
| Build Errors (30 days) | |
clang-format |
3 |
| Installs (90 days) | |
clang-format |
28,573 |
clang-format --HEAD |
42 |
| Installs on Request (90 days) | |
clang-format |
25,638 |
clang-format --HEAD |
42 |
| Installs (365 days) | |
clang-format |
105,170 |
clang-format --HEAD |
185 |
| Installs on Request (365 days) | |
clang-format |
93,741 |
clang-format --HEAD |
185 |