Skip to content
SPECIFICTION
Get listed

clang-format

clang.llvm.org

WindowsmacOSLinuxBrowser extension
Visit clang.llvm.org
Spec score 7.6 #20 of 34 in Code Formatting Tools

Spec sheet

Purpose
ClangFormat is a set of tools built on LibFormat for formatting source code, available as a standalone tool and through editor integrations.Read 30 Sep 2026 · clang.llvm.org
Intended users
The documentation presents ClangFormat as a standalone tool and editor integration for source-code formatting workflows.Read 30 Sep 2026 · clang.llvm.org
Support
The Clang guide directs users who encounter problems to file bugs on the LLVM bug tracker.Read 30 Sep 2026 · clang.llvm.org
License
LLVM releases are distributed under the Apache-2.0 license with LLVM exceptions, which the download page describes as OSI-approved.Read 30 Sep 2026 · releases.llvm.org
Configuration
Formatting styles can be set with command-line options or project-level .clang-format or _clang-format files.Read 30 Sep 2026 · clang.llvm.org
Distribution
The LLVM project provides source and pre-built binary downloads, with listed binaries including Windows, macOS, and Linux platforms.Read 30 Sep 2026 · releases.llvm.org
Editor integrations
The documentation describes integrations for Vim, Emacs, BBEdit, CLion, Visual Studio, and Visual Studio Code.Read 30 Sep 2026 · clang.llvm.org
Git integration
The git-clang-format script can format lines changed in commits or staged changes.Read 30 Sep 2026 · clang.llvm.org
Git workflow
The git-clang-format script can format lines changed in commits or staged changes.Read 30 Sep 2026 · clang.llvm.org
Ignore rules
A .clang-format-ignore file can contain path patterns for files that clang-format should skip.Read 30 Sep 2026 · clang.llvm.org
Languages
The standalone tool formats C, C++, Java, JavaScript, JSON, Objective-C, Protobuf, and C# code.Read 30 Sep 2026 · clang.llvm.org
Limit
Formatting a line range or byte range can only be used with one input file.Read 30 Sep 2026 · clang.llvm.org
Linux and macOS availability
The Clang guide describes building on Unix-like systems and says Clang is provided by major BSD and GNU/Linux distributions and is the default compiler for Mac OS X from Xcode 4.2.Read 30 Sep 2026 · clang.llvm.org
Patch workflow
The clang-format-diff.py script reads unified diff output and reformats the changed lines.Read 30 Sep 2026 · clang.llvm.org
Release verification
LLVM source packages and Git tags are signed by release managers, and the page provides keys for verification.Read 30 Sep 2026 · releases.llvm.org
Selective formatting
The command-line tool can format specified line or byte ranges in a single input file.Read 30 Sep 2026 · clang.llvm.org
Style configuration
Users can select built-in LLVM, GNU, Google, Chromium, Microsoft, Mozilla, and WebKit styles or configure formatting in a .clang-format file.Read 30 Sep 2026 · clang.llvm.org
Style presets
Built-in style presets include LLVM, GNU, Google, Chromium, Microsoft, Mozilla, and WebKit.Read 30 Sep 2026 · clang.llvm.org
Support and community
LLVM directs users to its Discourse forum and mailing lists, and announces new releases in its Announce category.Read 30 Sep 2026 · releases.llvm.org
Windows availability
The Clang build guide documents building Clang on Windows using Visual Studio.Read 30 Sep 2026 · clang.llvm.org

Where Specifiction places it

Alternatives to clang-formatAll alternatives →