clang-format@11
« Back to VersTracker
Description:
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
Type: Formula  |  Latest Version: 11.1.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  @clangllvm  |  formulae.brew.sh
Category: Developer tools
Tags: code-formatting c++ clang developer-tools linting
Install: brew install clang-format@11
About:
Clang-format is a standalone command-line tool that formats C, C++, Java, JavaScript, TypeScript, and Objective-C code according to user-defined styles. It automatically applies consistent indentation, whitespace, and line-breaking rules, making it essential for maintaining codebases with multiple contributors. The tool integrates seamlessly into CI pipelines and IDEs to enforce style guides automatically.
Key Features:
  • Supports multiple languages including C++, Java, and JavaScript
  • Highly configurable style rules via .clang-format files
  • Automated code formatting for consistent style enforcement
  • Can format partial code snippets or full files
  • Integrates with git hooks and CI/CD pipelines
Use Cases:
  • Enforcing consistent coding standards across development teams
  • Automated code formatting in pre-commit hooks
  • Reformatting legacy codebases to modern standards
  • Integrating with code reviews to reduce style-related feedback
Alternatives:
  • clang-format@12 – Newer version with additional style options and language support
  • uncrustify – Alternative formatter with different configuration syntax, supports fewer languages
  • prettier – JavaScript-focused formatter that also handles some C-like languages but with different philosophy
License: Apache-2.0
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 12, 2025 7:55pm 0 VERSION_BUMP 5ef00329