clang-format

Install command:
brew install clang-format

Also known as: clang-format@13

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

Bottle JSON API: /api/bottle/clang-format.json

Formula code: clang-format.rb on GitHub

Bottle (binary package) installation support provided for:

Intel monterey
big sur
catalina
mojave
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 13.0.0
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.22.1 Cross-platform make
ninja 1.10.2 Small build system for use with gyp or CMake

Analytics (macOS):

Installs (30 days)
clang-format 5,575
clang-format --HEAD 2
Installs on Request (30 days)
clang-format 4,303
clang-format --HEAD 2
Build Errors (30 days)
clang-format 19
Installs (90 days)
clang-format 21,296
clang-format --HEAD 10
Installs on Request (90 days)
clang-format 16,683
clang-format --HEAD 10
Installs (365 days)
clang-format 105,211
clang-format --HEAD 231
Installs on Request (365 days)
clang-format 84,560
clang-format --HEAD 230

Analytics (Linux):

Installs (30 days)
clang-format 74
Installs on Request (30 days)
clang-format 70
Build Errors (30 days)
clang-format 0
Installs (90 days)
clang-format 264
Installs on Request (90 days)
clang-format 238
Installs (365 days)
clang-format 745
clang-format --HEAD 3
Installs on Request (365 days)
clang-format 650
clang-format --HEAD 3
Fork me on GitHub