clang-format

Install command:
brew install clang-format

Also known as: clang-format@15

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

Current versions:

stable 15.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.25.1 Cross-platform make

Analytics (macOS):

Installs (30 days)
clang-format 23,376
clang-format --HEAD 1
Installs on Request (30 days)
clang-format 18,912
clang-format --HEAD 1
Build Errors (30 days)
clang-format 3
Installs (90 days)
clang-format 43,515
clang-format --HEAD 20
Installs on Request (90 days)
clang-format 35,124
clang-format --HEAD 20
Installs (365 days)
clang-format 153,808
clang-format --HEAD 136
Installs on Request (365 days)
clang-format 124,397
clang-format --HEAD 136

Analytics (Linux):

Installs (30 days)
clang-format 454
Installs on Request (30 days)
clang-format 443
Build Errors (30 days)
clang-format 0
Installs (90 days)
clang-format 901
Installs on Request (90 days)
clang-format 878
Installs (365 days)
clang-format 2,124
Installs on Request (365 days)
clang-format 2,041
Fork me on GitHub