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.1 |
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 | 3.31.6 | Cross-platform make |
Analytics:
Installs (30 days) | |
---|---|
clang-format |
10,000 |
clang-format --HEAD |
14 |
Installs on Request (30 days) | |
clang-format |
9,068 |
clang-format --HEAD |
14 |
Build Errors (30 days) | |
clang-format |
9 |
Installs (90 days) | |
clang-format |
23,466 |
clang-format --HEAD |
45 |
Installs on Request (90 days) | |
clang-format |
21,061 |
clang-format --HEAD |
45 |
Installs (365 days) | |
clang-format |
107,992 |
clang-format --HEAD |
207 |
Installs on Request (365 days) | |
clang-format |
95,795 |
clang-format --HEAD |
207 |