AptLynx

Command-line tool

clang-format

brew/clang-format

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript cpp compiler fortran c++ gcc assembly assembler binutils c gdb gfortran make

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

winget install --id BrechtSanders.WinLibs.POSIX.MSVCRT.LLVM -e

macOS

brew install clang-format

Linux

brew install clang-format

Format a file and print the result to `stdout`

clang-format path/to/file

Format a file in-place

clang-format -i path/to/file

Format a file using a predefined coding style

clang-format --style LLVM path/to/file

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents