Also known as: clang-format@19
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:
Apple Silicon | sequoia | ✅ |
---|---|---|
sonoma | ✅ | |
ventura | ✅ | |
Intel | sonoma | ✅ |
ventura | ✅ | |
64-bit linux | ✅ |
Current versions:
stable | ✅ | 19.1.6 |
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.31.3 | Cross-platform make |
Analytics:
Installs (30 days) | |
---|---|
clang-format |
10,015 |
clang-format --HEAD |
22 |
Installs on Request (30 days) | |
clang-format |
8,743 |
clang-format --HEAD |
22 |
Build Errors (30 days) | |
clang-format |
2 |
Installs (90 days) | |
clang-format |
30,466 |
clang-format --HEAD |
62 |
Installs on Request (90 days) | |
clang-format |
26,887 |
clang-format --HEAD |
62 |
Installs (365 days) | |
clang-format |
102,678 |
clang-format --HEAD |
193 |
Installs on Request (365 days) | |
clang-format |
90,722 |
clang-format --HEAD |
193 |