clang-format
brew install clang-format
v22.1.8
Apache-2.0 WITH LLVM-exception
Code formatter for C, C++, Objective-C, Java, JavaScript, and TypeScript that enforces consistent style via .clang-format config files.
Why you might care
Essential tool for teams enforcing uniform code style across polyglot projects; drop-in formatter that integrates with editors and CI pipelines. Supports customizable style guides (LLVM, Google, Chromium, WebKit presets) and can auto-format or check compliance in batch operations.
9.2k
30-day installs · #374
28.1k
90-day · #410
99.7k
365-day · #418
Build dependencies
Links
- https://clang.llvm.org/docs/ClangFormat.html
- Brew formula source: Formula/c/clang-format.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [
"clang-format@22"
],
"alternatives": [
"prettier",
"astyle",
"uncrustify",
"black",
"rustfmt"
],
"build_dependencies": [
"cmake"
],
"categories": [
"formatter",
"linter"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:24+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "clang-format",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://clang.llvm.org/docs/ClangFormat.html",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "ClangFormat \u2014 Clang 23.0.0git documentation",
"installs_30d": 9207,
"installs_365d": 99719,
"installs_90d": 28109,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0 WITH LLVM-exception",
"llm_generated_at": "2026-06-20T23:44:28+00:00",
"llm_model": "claude-haiku-4-5",
"name": "clang-format",
"oldnames": [],
"one_liner": "Code formatter for C, C++, Objective-C, Java, JavaScript, and TypeScript that enforces consistent style via .clang-format config files.",
"optional_dependencies": [],
"rank_30d": 374,
"rank_365d": 418,
"rank_90d": 410,
"raw_hash": "75bf15738537489b",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/clang-format.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"python"
],
"version_head": "HEAD",
"version_stable": "22.1.8",
"versioned_formulae": [
"clang-format@11"
],
"why_use_this": "Essential tool for teams enforcing uniform code style across polyglot projects; drop-in formatter that integrates with editors and CI pipelines. Supports customizable style guides (LLVM, Google, Chromium, WebKit presets) and can auto-format or check compliance in batch operations."
}