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.4 |
| 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,498 |
clang-format --HEAD |
12 |
| Installs on Request (30 days) | |
clang-format |
9,453 |
clang-format --HEAD |
12 |
| Build Errors (30 days) | |
clang-format |
2 |
| Installs (90 days) | |
clang-format |
24,791 |
clang-format --HEAD |
41 |
| Installs on Request (90 days) | |
clang-format |
22,263 |
clang-format --HEAD |
41 |
| Installs (365 days) | |
clang-format |
104,939 |
clang-format --HEAD |
190 |
| Installs on Request (365 days) | |
clang-format |
93,420 |
clang-format --HEAD |
190 |