clang-format

Install command:
brew install clang-format

Also known as: clang-format@14

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
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 14.0.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.23.2 Cross-platform make

Analytics (macOS):

Installs (30 days)
clang-format 17,076
clang-format --HEAD 21
Installs on Request (30 days)
clang-format 13,746
clang-format --HEAD 21
Build Errors (30 days)
clang-format 1
Installs (90 days)
clang-format 52,652
clang-format --HEAD 65
Installs on Request (90 days)
clang-format 43,114
clang-format --HEAD 65
Installs (365 days)
clang-format 132,748
clang-format --HEAD 123
Installs on Request (365 days)
clang-format 106,840
clang-format --HEAD 123

Analytics (Linux):

Installs (30 days)
clang-format 154
Installs on Request (30 days)
clang-format 143
Build Errors (30 days)
clang-format 0
Installs (90 days)
clang-format 509
Installs on Request (90 days)
clang-format 486
Installs (365 days)
clang-format 1,315
clang-format --HEAD 3
Installs on Request (365 days)
clang-format 1,214
clang-format --HEAD 3
Fork me on GitHub