brew install clang-format
Also known as: clang-format@20
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 |
sequoia | ✅ |
---|---|---|
sonoma | ✅ | |
ventura | ✅ | |
macOS on Intel |
sonoma | ✅ |
ventura | ✅ | |
Linux | ARM64 | ✅ |
x86_64 | ✅ |
Current versions:
stable | ✅ | 20.1.7 |
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.0.3 | Cross-platform make |
Analytics:
Installs (30 days) | |
---|---|
clang-format |
9,023 |
clang-format --HEAD |
12 |
Installs on Request (30 days) | |
clang-format |
7,900 |
clang-format --HEAD |
12 |
Build Errors (30 days) | |
clang-format |
4 |
Installs (90 days) | |
clang-format |
29,215 |
clang-format --HEAD |
51 |
Installs on Request (90 days) | |
clang-format |
25,867 |
clang-format --HEAD |
51 |
Installs (365 days) | |
clang-format |
104,967 |
clang-format --HEAD |
194 |
Installs on Request (365 days) | |
clang-format |
93,424 |
clang-format --HEAD |
194 |