ClangFormat logo

ClangFormat LLVM

Use this command to install ClangFormat:
winget install --id=LLVM.ClangFormat -e

A tool to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.

ClangFormat is a code formatting tool designed to automatically format source code for multiple programming languages, including C/C++, Java, JavaScript, JSON, Objective-C, Protobuf, and C#. It ensures consistent coding styles across projects, reducing manual effort and improving readability.

Key Features:

  • Supports multiple programming languages.
  • Ensures consistent code style enforcement.
  • Integrates seamlessly with development environments.
  • Cross-platform compatibility, including Windows.
  • Easy installation via winget for convenience.

Audience & Benefit: Ideal for software developers and teams working on large-scale projects. ClangFormat helps maintain uniform coding standards, reduces merge conflicts, enhances code maintainability, and saves time by automating repetitive formatting tasks.

README

ClangFormat for Windows

Repository to produce statically linked x64 binary of clang-format.

How to download

Releases page

How to build

Run build.ps1 script. You need to have Visual Studio installed

Versions
19.1.7
19.1.0
18.1.6
Website
License