Description:
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
|
|
Type: Formula
|
Latest Version: 21.1.8@0
|
Tracked Since: Dec 17, 2025
|
|
Links:
Homepage |
formulae.brew.sh
|
|
Category: Developer tools
|
|
Tags:
code-formatting
c++
developer-tools
linter
llvm
|
|
Install:
brew install clang-format
|
About:
Clang-format is a standalone tool and library that parses C, C++, Java, JavaScript, Objective-C, and TypeScript code to automatically format it according to a specified style. It enforces consistent code style, making large codebases easier to read and maintain. The tool is highly configurable, supporting LLVM, Google, Chromium, and Mozilla style conventions, or custom rules defined in a .clang-format file.
|
Key Features:
- Supports multiple programming languages including C++, Java, and JavaScript
- Enforces consistent coding style based on configurable rules
- Can automatically fix formatting issues or just check for compliance
- Integrates easily with editors like Vim, Emacs, and VS Code
|
Use Cases:
- Standardizing code style across a team or open-source project
- Automating code formatting in CI/CD pipelines to prevent style drift
- Refactoring legacy codebases to meet modern style guidelines
|
Alternatives:
-
rustfmt
– Rustfmt is the equivalent tool specifically for the Rust programming language.
-
Prettier
– Prettier is a popular opinionated code formatter for web development languages like JavaScript and CSS.
|
|
License: Apache-2.0 WITH LLVM-exception
|
|
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
|
| Detected |
Version |
Rev |
Change |
Commit |
| Dec 16, 2025 2:52pm |
|
0 |
VERSION_BUMP |
cfbb508b |
| Oct 21, 2025 11:56am |
|
0 |
VERSION_BUMP |
271bb20e |
| Oct 8, 2025 1:56pm |
|
0 |
VERSION_BUMP |
25059888 |
| Sep 24, 2025 2:19am |
|
0 |
VERSION_BUMP |
8a57a3bf |
| Sep 12, 2025 8:13pm |
|
0 |
VERSION_BUMP |
59f23c7f |
| Jan 14, 2025 11:58am |
|
0 |
VERSION_BUMP |
9c626e6d |
| Nov 20, 2024 2:49am |
|
0 |
VERSION_BUMP |
59df2be6 |
| Nov 19, 2024 9:19pm |
|
0 |
VERSION_BUMP |
2c3e4915 |
| Oct 30, 2024 8:19pm |
|
0 |
VERSION_BUMP |
8c197339 |
| Oct 30, 2024 12:31pm |
|
0 |
VERSION_BUMP |
50c72528 |
| Oct 1, 2024 4:45pm |
|
0 |
VERSION_BUMP |
795488ea |
| Sep 17, 2024 1:15pm |
|
0 |
VERSION_BUMP |
abc3162d |
| Jun 21, 2024 9:06pm |
|
0 |
VERSION_BUMP |
27fe3482 |
| Apr 18, 2024 8:52am |
|
0 |
VERSION_BUMP |
14ebcb51 |
| Apr 18, 2024 3:07am |
|
0 |
VERSION_BUMP |
ee98fe21 |
| Apr 4, 2024 5:51pm |
|
0 |
VERSION_BUMP |
9a70bb96 |
| Apr 4, 2024 8:43am |
|
0 |
VERSION_BUMP |
70ca2483 |
| Sep 19, 2023 7:56pm |
|
0 |
VERSION_BUMP |
db8c9f60 |
| May 17, 2023 5:07pm |
|
0 |
VERSION_BUMP |
55211d6a |
| May 17, 2023 10:23am |
|
0 |
VERSION_BUMP |
96d8cfc6 |
| May 3, 2023 4:14am |
|
0 |
VERSION_BUMP |
930bd6d6 |
| Apr 20, 2023 12:01am |
|
0 |
VERSION_BUMP |
0c6b53be |
| Apr 19, 2023 4:41pm |
|
0 |
VERSION_BUMP |
a6f39be5 |
| Mar 18, 2023 9:54pm |
|
0 |
VERSION_BUMP |
9fbe047d |
| Mar 18, 2023 9:53pm |
|
0 |
VERSION_BUMP |
c08eaa4b |
| Mar 18, 2023 9:53pm |
|
0 |
VERSION_BUMP |
d7a0d992 |
| Mar 18, 2023 9:53pm |
|
0 |
VERSION_BUMP |
88e8e728 |
| Mar 18, 2023 3:36am |
|
0 |
VERSION_BUMP |
220c09bd |
|