Skip to content

static-linked versions of clang tools for Linux, Mac OS X and Windows

License

Notifications You must be signed in to change notification settings

cpp-linter/clang-tools-static-binaries

Repository files navigation

clang-tools static binaries

Build Maintenance

Includes clang-format, clang-tidy, clang-query and clang-apply-replacements.

The supported versions are as follows:

Clang Tools OS/Version 20 19 18 17 16 15 14 13 12 11 10 9 8
clang-format Linux 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Window 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
macOS 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
clang-tidy Linux 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Window 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
macOS 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
clang-query Linux 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Window 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
macOS 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
clang-apply-replacements Linux 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Window 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
macOS 64 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️

Caution

clang-tidy-19_macosx-amd64 and clang-tidy-20_macosx-amd64 - Files size exceeds 2GB, unable to upload to GitHub releases. See #40

Note

Remove Support v7 (released in May 2019) by February 2025.

Download

  • Download clang-tools static binaries for your platform from the Releases tab.
  • Alternatively, use the clang-tools CLI to download and manage them.

Motivation behind this repo

I used to contribute to different repositories and they often use different versions of clang-format.

I could either compile clang-format for each one I want to have or I could try messing up with my package system (I use Arch Linux btw) and try installing all of them on my system. This can very quickly get out of hand, hence I created this repository.

These binaries aim to:

  • be as small as possible
  • not require any additional dependencies apart from OS itself

This repository (cpp-linter/clang-tools-static-binaries) is forked from muttleyxd/clang-tools-static-binaries.

How can I trust this repository?

  • Verify sha512sums of binaries against output from GitHub Actions to make sure binaries are not modified
  • Fork this repository and run GitHub actions on your behalf
  • Build and test manually using steps and commands from .github/workflows