clang-format

Install command:
brew install clang-format

Also known as: clang-format@12

Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript

https://clang.llvm.org/docs/ClangFormat.html

License: Apache-2.0

/api/formula/clang-format.json (JSON API)

/api/bottle/clang-format.json (Bottle JSON API)

Formula code on GitHub

Bottle (binary package) installation support provided for macOS releases:

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

Current versions:

stable 12.0.1
head ⚡️ HEAD

Other versions:

clang-format@8 8.0.1 Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript

Depends on when building from source:

cmake 3.21.0 Cross-platform make
ninja 1.10.2 Small build system for use with gyp or CMake

Analytics:

Installs (30 days)
clang-format 10,864
clang-format --HEAD 10
Installs on Request (30 days)
clang-format 8,812
clang-format --HEAD 10
Build Errors (30 days)
clang-format 4
Installs (90 days)
clang-format 26,325
clang-format --HEAD 22
Installs on Request (90 days)
clang-format 21,506
clang-format --HEAD 22
Installs (365 days)
clang-format 102,842
clang-format --HEAD 319
Installs on Request (365 days)
clang-format 84,491
clang-format --HEAD 312
Fork me on GitHub