brew install clang-format
Also known as: clang-format@17
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
https://clang.llvm.org/docs/ClangFormat.html
License: Apache-2.0
Formula JSON API: /api/formula/clang-format.json
Formula code: clang-format.rb
on GitHub
Bottle (binary package) installation support provided for:
Apple Silicon | sonoma | ✅ |
---|---|---|
ventura | ✅ | |
monterey | ✅ | |
Intel | sonoma | ✅ |
ventura | ✅ | |
monterey | ✅ | |
64-bit linux | ✅ |
Current versions:
stable | ✅ | 17.0.2 |
head | ⚡️ | HEAD |
Other versions:
clang-format@11 | 11.1.0 | Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript |
clang-format@8 | 8.0.1 | Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript |
Depends on when building from source:
cmake | 3.27.6 | Cross-platform make |
Analytics:
Installs (30 days) | |
---|---|
clang-format |
8,424 |
Installs on Request (30 days) | |
clang-format |
7,434 |
Build Errors (30 days) | |
clang-format |
6 |
Installs (90 days) | |
clang-format |
14,706 |
Installs on Request (90 days) | |
clang-format |
12,972 |
Installs (365 days) | |
clang-format |
50,387 |
Installs on Request (365 days) | |
clang-format |
43,765 |