@@ -457,6 +506,7 @@
Maintained by two volunteers
pre-commit hooks
Python CLI
clang-tools
+
Python wheels
Static binaries
npm packages
Docker images
diff --git a/docs/packages.md b/docs/packages.md
new file mode 100644
index 0000000..416b40f
--- /dev/null
+++ b/docs/packages.md
@@ -0,0 +1,159 @@
+---
+title: C and C++ tools, packaged
+description: clang-include-cleaner, clang-apply-replacements, llvm-cov and ccache as Python wheels on PyPI, and clang-format and clang-tidy on npm, Homebrew, asdf and Docker, for LLVM 12 to 23 on six platforms.
+hide:
+ - navigation
+---
+
+# C and C++ tools, packaged
+
+cpp-linter builds clang-format, clang-tidy and the LLVM tools around them as static binaries for
+every LLVM version from 12 to 23, on Linux, macOS and Windows, x86-64 and ARM64. The same files
+then go to PyPI, npm, Homebrew, asdf and Docker, so you install the tool at the version you pin,
+with the package manager your project already uses. There is no LLVM to install and nothing to
+compile.
+
+
+
+
12–23LLVM versions, each at its newest release
+
6platforms: Linux, macOS and Windows on x86-64 and ARM64
+
540k+downloads of the static binaries
+
Attestedeach binary and wheel names the commit that built it
+
+
+
+## Python wheels
+
+`pip install`, `uv tool install` or `pipx install` puts the command on your `PATH`. The package
+version is the tool's version, so `pip install "llvm-cov==22.*"` installs llvm-cov from LLVM 22.
+
+
+
+- **clang-include-cleaner** LLVM 22–23
+
+ ---
+
+ Finds unused and missing `#include` directives in C and C++ files.
+
+ ```bash
+ pip install clang-include-cleaner
+ ```
+
+ [PyPI](https://pypi.org/project/clang-include-cleaner/) ·
+ [GitHub](https://github.com/cpp-linter/clang-include-cleaner-wheel)
+
+- **clang-apply-replacements** LLVM 16–23
+
+ ---
+
+ Applies the fixes that `clang-tidy --export-fixes` writes to your source files.
+
+ ```bash
+ pip install clang-apply-replacements
+ ```
+
+ [PyPI](https://pypi.org/project/clang-apply-replacements/) ·
+ [GitHub](https://github.com/cpp-linter/clang-apply-replacements-wheel)
+
+- **llvm-cov** LLVM 12–23
+
+ ---
+
+ `llvm-cov` and `llvm-profdata`, for clang's source-based code coverage.
+
+ ```bash
+ pip install llvm-cov
+ ```
+
+ [PyPI](https://pypi.org/project/llvm-cov/) ·
+ [GitHub](https://github.com/cpp-linter/llvm-cov-wheel)
+
+- **ccache-bin** ccache 4
+
+ ---
+
+ `ccache`, the C and C++ compiler cache, from ccache's own release binaries.
+
+ ```bash
+ pip install ccache-bin
+ ```
+
+ [PyPI](https://pypi.org/project/ccache-bin/) ·
+ [GitHub](https://github.com/cpp-linter/ccache-wheel)
+
+
+
+Every wheel:
+
+- holds the tool's binary unchanged, plus clang's builtin headers when the tool parses code;
+- contains no Python code, so it works with any Python 3, and is tested with pip, uv,
+ `uv tool install` and `pip install --user` on every platform before it is released;
+- has Linux wheels for glibc 2.17 and later and for musl, so it also installs on Alpine;
+- is published from GitHub Actions with PyPI Trusted Publishing, with an attestation that names
+ the commit it was built from.
+
+Pin the tools next to the rest of your development dependencies, and every laptop and CI job runs
+the same version:
+
+```toml title="pyproject.toml"
+[dependency-groups]
+dev = ["clang-include-cleaner==22.*", "llvm-cov==22.*", "ccache-bin"]
+```
+
+Or run one without installing it, for example in CI: `uvx clang-include-cleaner --help`, or
+`pipx run llvm-cov --version` on GitHub-hosted runners, which ship with pipx.
+
+clang-format and clang-tidy already have widely used wheels on PyPI from another project,
+[clang-format](https://pypi.org/project/clang-format/) and
+[clang-tidy](https://pypi.org/project/clang-tidy/); cpp-linter-hooks installs those. For LLVM
+versions they do not have, or to install several tools at once, use
+[clang-tools](https://cpp-linter.github.io/clang-tools-pip/), which installs the static binaries
+by version:
+
+```bash
+pip install clang-tools
+clang-tools install clang-format clang-tidy --version 21
+```
+
+## Other package managers
+
+| Package | LLVM | Runs on | Install |
+| --- | --- | --- | --- |
+| [npm packages](https://github.com/cpp-linter/clang-tools-npm) | 12 to 23 | Linux, macOS, Windows on x86-64 and ARM64 | `npm install --save-dev @cpp-linter/clang-format@21 @cpp-linter/clang-tidy@21` |
+| [Homebrew tap](https://github.com/cpp-linter/homebrew-tap) | 19 to 23 | macOS | `brew install cpp-linter/tap/clang-format@21` |
+| [asdf plugin](https://github.com/cpp-linter/asdf-clang-tools) | 12 to 23 | wherever asdf runs | `asdf plugin add clang-format https://github.com/cpp-linter/asdf-clang-tools.git` |
+| [Docker images](https://github.com/cpp-linter/clang-tools-docker) | 7 to 23 | Docker on x86-64 and ARM64 | `docker pull ghcr.io/cpp-linter/clang-tools:21` |
+| [Static binaries](https://cpp-linter.github.io/clang-tools-static-binaries/) | 12 to 23 | Linux, macOS, Windows on x86-64 and ARM64 | one file from the download page |
+
+## One build behind every package
+
+
+
+
UpstreamLLVM release12 to 23, each at its newest patch release
+
Built onceStatic binaries6 platforms, checksums and build attestations
+
Published toPyPI · npm · Homebrew · asdf · Dockerthe same files, unchanged
+
+
+
+A new LLVM release starts a build of the
+[static binaries](https://cpp-linter.github.io/clang-tools-static-binaries/) on all six
+platforms. When it is published, a bot opens the update pull request for each wheel, and the new
+wheels are released once they pass their tests on every platform. So an LLVM version runs the same
+`clang-tidy` whether it comes from clang-tools, npm, Homebrew, asdf or Docker. The build and
+release workflows the wheels share are in [cpp-linter/wheels](https://github.com/cpp-linter/wheels).
+
+## Check what you install
+
+Each static binary and each wheel has a build provenance attestation. To check one with the
+GitHub CLI:
+
+```bash
+gh attestation verify clang-format-22_linux-amd64 --repo cpp-linter/clang-tools-static-binaries
+pip download --no-deps "llvm-cov==22.*"
+gh attestation verify llvm_cov-*.whl --repo cpp-linter/llvm-cov-wheel
+```
+
+The static binaries also come with `SHA512SUMS`. Their
+[download page](https://cpp-linter.github.io/clang-tools-static-binaries/) shows how to check a
+download, and the [security policy](https://github.com/cpp-linter/clang-tools-static-binaries/blob/master/SECURITY.md#checking-where-a-binary-was-built)
+explains what an attestation proves.
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index 0033f53..a8261da 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -46,3 +46,111 @@
.md-typeset .compare table:not([class]) td:first-child {
font-weight: 600;
}
+
+/* Packages page: the numbers under the title */
+.md-typeset .cl-stats {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 0.8rem;
+ margin: 1.6em 0 0.4em;
+}
+
+.md-typeset .cl-stats > div {
+ display: flex;
+ flex-direction: column;
+ gap: 0.3rem;
+ padding: 0.9rem 1rem;
+ border: 1px solid var(--md-default-fg-color--lightest);
+ border-radius: 0.6rem;
+}
+
+.md-typeset .cl-stats strong {
+ font-size: 1.5rem;
+ font-weight: 750;
+ line-height: 1.1;
+ letter-spacing: -0.02em;
+}
+
+.md-typeset .cl-stats span {
+ color: var(--md-default-fg-color--light);
+ font-size: 0.68rem;
+ line-height: 1.45;
+}
+
+/* Packages page: LLVM range beside a wheel's name */
+.md-typeset .cl-range {
+ float: right;
+ padding: 0.05rem 0.45rem;
+ background: var(--md-accent-fg-color--transparent);
+ border-radius: 1rem;
+ color: var(--md-default-fg-color--light);
+ font-size: 0.62rem;
+ font-weight: 600;
+}
+
+.md-typeset .cl-wheel-cards > ul > li > p:first-child strong {
+ font-family: var(--md-code-font-family);
+}
+
+/* Packages page: LLVM release -> static binaries -> package managers */
+.md-typeset .cl-flow {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 1.6rem;
+ margin: 1.2em 0;
+}
+
+.md-typeset .cl-flow__step {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ gap: 0.25rem;
+ padding: 0.9rem 1rem;
+ border: 1px solid var(--md-default-fg-color--lightest);
+ border-radius: 0.6rem;
+}
+
+.md-typeset .cl-flow__step + .cl-flow__step::before {
+ position: absolute;
+ top: 50%;
+ left: -1.25rem;
+ color: var(--md-default-fg-color--light);
+ content: "→";
+ transform: translateY(-50%);
+}
+
+.md-typeset .cl-flow__step--main {
+ border-color: var(--md-primary-fg-color);
+ box-shadow: inset 0 0 0 1px var(--md-primary-fg-color);
+}
+
+.md-typeset .cl-flow__label {
+ color: var(--md-default-fg-color--light);
+ font-size: 0.6rem;
+ font-weight: 700;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+}
+
+.md-typeset .cl-flow__step > span:last-child {
+ color: var(--md-default-fg-color--light);
+ font-size: 0.68rem;
+}
+
+@media screen and (max-width: 44.9375em) {
+ .md-typeset .cl-stats {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+
+ .md-typeset .cl-flow {
+ grid-template-columns: minmax(0, 1fr);
+ gap: 1.4rem;
+ }
+
+ .md-typeset .cl-flow__step + .cl-flow__step::before {
+ top: -1.15rem;
+ left: 1rem;
+ content: "↓";
+ transform: none;
+ }
+}
diff --git a/docs/stylesheets/home.css b/docs/stylesheets/home.css
index 87b9698..a1fc38d 100644
--- a/docs/stylesheets/home.css
+++ b/docs/stylesheets/home.css
@@ -1640,6 +1640,156 @@
color: #7ddbb3;
}
+/* Packages: the tools on PyPI, npm, Homebrew and Docker */
+
+.cl-pkg {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
+ gap: 72px;
+ align-items: center;
+}
+
+.cl-facts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 16px 56px;
+ margin: 34px 0 30px;
+}
+
+.cl-facts > div {
+ margin: 0;
+}
+
+.cl-facts dt {
+ color: var(--cl-ink);
+ font-family: var(--cl-display);
+ font-size: 40px;
+ font-weight: 780;
+ line-height: 1;
+ letter-spacing: -0.02em;
+}
+
+.cl-facts dd {
+ margin: 8px 0 0;
+ color: var(--cl-muted);
+ font-size: 14.5px;
+ font-weight: 500;
+}
+
+.cl-code--shell {
+ font-variant-ligatures: none;
+ line-height: 26px;
+}
+
+.cl-code .c {
+ color: #8a8fac;
+}
+
+.cl-code .p {
+ color: #7ddbb3;
+ user-select: none;
+}
+
+.cl-wheels {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 18px;
+ margin-top: 64px;
+}
+
+.cl-wheel {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ padding: 22px 22px 20px;
+ background: var(--cl-soft);
+ border: 1px solid var(--cl-line);
+ border-radius: 16px;
+ color: var(--cl-ink);
+ transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
+}
+
+.cl-wheel:hover {
+ border-color: var(--cl-primary);
+ box-shadow: 0 18px 40px -28px rgba(43, 54, 133, 0.55);
+ transform: translateY(-2px);
+}
+
+.cl-wheel__top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+}
+
+.cl-wheel__badge {
+ padding: 2px 9px;
+ background: var(--cl-primary-tint);
+ border-radius: 999px;
+ color: var(--cl-deep);
+ font-size: 12px;
+ font-weight: 700;
+ letter-spacing: 0.04em;
+}
+
+.cl-wheel__range {
+ color: var(--cl-muted);
+ font-size: 13px;
+ font-weight: 600;
+}
+
+.cl-wheel__name {
+ margin-top: 6px;
+ overflow-wrap: anywhere;
+ font-family: var(--cl-mono);
+ font-size: 16px;
+ font-weight: 700;
+}
+
+.cl-wheel__text {
+ flex-grow: 1;
+ color: var(--cl-ink-2);
+ font-size: 15px;
+ line-height: 1.5;
+}
+
+.cl-wheel__more {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ color: var(--cl-primary);
+ font-size: 14.5px;
+ font-weight: 650;
+}
+
+.cl-wheel:hover .cl-wheel__more {
+ color: var(--cl-deep);
+}
+
+@media screen and (max-width: 1199px) {
+ .cl-wheels {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+}
+
+@media screen and (max-width: 999px) {
+ .cl-pkg {
+ grid-template-columns: minmax(0, 1fr);
+ gap: 40px;
+ }
+}
+
+@media screen and (max-width: 640px) {
+ .cl-wheels {
+ grid-template-columns: minmax(0, 1fr);
+ margin-top: 40px;
+ }
+
+ .cl-facts dt {
+ font-size: 32px;
+ }
+}
+
/* Sponsor band */
.cl-sponsor {
diff --git a/mkdocs.yml b/mkdocs.yml
index fc9e6db..cdb3869 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -12,6 +12,7 @@ exclude_docs: |
nav:
- Home: index.md
- Get started: getting-started.md
+ - Packages: packages.md
- Playground: playground.md
- Other CI: other-ci.md
- AI coding agents: ai-coding-agents.md
From 0bad30d461b871114a6e082f03a2c588185ec378 Mon Sep 17 00:00:00 2001
From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com>
Date: Wed, 2 Dec 2026 22:07:18 +0000
Subject: [PATCH 2/2] docs: group the site's tabs into Docs, Why cpp-linter and
Community
---
docs/ai-coding-agents.md | 2 --
docs/discussion.md | 2 --
docs/getting-started.md | 2 --
docs/other-ci.md | 2 --
docs/overrides/home.html | 5 +----
docs/packages.md | 12 +++++-------
docs/showcase.md | 2 --
docs/sponsor.md | 2 --
docs/stylesheets/extra.css | 10 ++++++++--
docs/why-cpp-linter.md | 2 --
mkdocs.yml | 19 +++++++++++--------
11 files changed, 25 insertions(+), 35 deletions(-)
diff --git a/docs/ai-coding-agents.md b/docs/ai-coding-agents.md
index fc1a40d..fe629d7 100644
--- a/docs/ai-coding-agents.md
+++ b/docs/ai-coding-agents.md
@@ -1,8 +1,6 @@
---
title: Use cpp-linter with AI coding agents
description: Make clang-format and clang-tidy the check an AI coding agent runs after it edits C or C++ code, with configs for Claude Code, GitHub Copilot coding agent, AGENTS.md, pre-commit and pull requests.
-hide:
- - navigation
---
# Use cpp-linter with AI coding agents
diff --git a/docs/discussion.md b/docs/discussion.md
index 5e67ecb..fe482f8 100644
--- a/docs/discussion.md
+++ b/docs/discussion.md
@@ -1,8 +1,6 @@
---
title: Community
description: Where to ask about cpp-linter, report bugs and security problems, and contribute.
-hide:
- - navigation
---
# Community
diff --git a/docs/getting-started.md b/docs/getting-started.md
index 07daefb..9d2004b 100644
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -1,8 +1,6 @@
---
title: Get started
description: Set up cpp-linter-action, the cpp-linter pre-commit hooks, the cpp-linter command or the clang tools, with the LLVM version you pin.
-hide:
- - navigation
---
# Get started
diff --git a/docs/other-ci.md b/docs/other-ci.md
index 6aa27c9..740c798 100644
--- a/docs/other-ci.md
+++ b/docs/other-ci.md
@@ -1,8 +1,6 @@
---
title: Other CI systems
description: Run clang-format and clang-tidy on the files a branch changes in GitLab CI, Jenkins, Azure Pipelines and Bitbucket Pipelines, with the cpp-linter command.
-hide:
- - navigation
---
# Other CI systems
diff --git a/docs/overrides/home.html b/docs/overrides/home.html
index 0c6fff5..34ef7b0 100644
--- a/docs/overrides/home.html
+++ b/docs/overrides/home.html
@@ -12,12 +12,9 @@
{% block header %}
{% set links = [
- ("Get started", "getting-started/" | url),
- ("Tools", "#tools"),
- ("Packages", "packages/" | url),
+ ("Docs", "getting-started/" | url),
("Playground", "playground/" | url),
("Why cpp-linter", "why-cpp-linter/" | url),
- ("Showcase", "showcase/" | url),
("Blog", "blog/" | url),
("Community", "discussion/" | url),
] %}
diff --git a/docs/packages.md b/docs/packages.md
index 416b40f..2eef5eb 100644
--- a/docs/packages.md
+++ b/docs/packages.md
@@ -1,8 +1,6 @@
---
title: C and C++ tools, packaged
description: clang-include-cleaner, clang-apply-replacements, llvm-cov and ccache as Python wheels on PyPI, and clang-format and clang-tidy on npm, Homebrew, asdf and Docker, for LLVM 12 to 23 on six platforms.
-hide:
- - navigation
---
# C and C++ tools, packaged
@@ -15,10 +13,10 @@ compile.
-
12–23LLVM versions, each at its newest release
-
6platforms: Linux, macOS and Windows on x86-64 and ARM64
-
540k+downloads of the static binaries
-
Attestedeach binary and wheel names the commit that built it
+
12–23LLVM versions
+
6platforms, x86-64 and ARM64
+
540k+binary downloads
+
Attestedbuild provenance on every file
@@ -46,7 +44,7 @@ version is the tool's version, so `pip install "llvm-cov==22.*"` installs llvm-c
---
- Applies the fixes that `clang-tidy --export-fixes` writes to your source files.
+ Applies the fixes clang-tidy exports to your source files.
```bash
pip install clang-apply-replacements
diff --git a/docs/showcase.md b/docs/showcase.md
index d1f453e..4ecc0d2 100644
--- a/docs/showcase.md
+++ b/docs/showcase.md
@@ -1,8 +1,6 @@
---
title: Who uses cpp-linter
description: Open-source projects that run cpp-linter-action, ranked by GitHub stars, and some that use cpp-linter-hooks.
-hide:
- - navigation
---
# Who uses cpp-linter
diff --git a/docs/sponsor.md b/docs/sponsor.md
index 9692bc2..1ef02a7 100644
--- a/docs/sponsor.md
+++ b/docs/sponsor.md
@@ -1,7 +1,5 @@
---
description: Sponsor cpp-linter through GitHub Sponsors or Open Collective. Sponsor tiers include your logo on the website and READMEs and thanks in release notes.
-hide:
- - navigation
---
# Sponsor cpp-linter
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index a8261da..2c279d5 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -65,7 +65,7 @@
}
.md-typeset .cl-stats strong {
- font-size: 1.5rem;
+ font-size: 1.3rem;
font-weight: 750;
line-height: 1.1;
letter-spacing: -0.02em;
@@ -79,7 +79,6 @@
/* Packages page: LLVM range beside a wheel's name */
.md-typeset .cl-range {
- float: right;
padding: 0.05rem 0.45rem;
background: var(--md-accent-fg-color--transparent);
border-radius: 1rem;
@@ -88,6 +87,13 @@
font-weight: 600;
}
+.md-typeset .cl-wheel-cards > ul > li > p:first-child {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 0.4rem;
+}
+
.md-typeset .cl-wheel-cards > ul > li > p:first-child strong {
font-family: var(--md-code-font-family);
}
diff --git a/docs/why-cpp-linter.md b/docs/why-cpp-linter.md
index 2905aa4..1e2a44c 100644
--- a/docs/why-cpp-linter.md
+++ b/docs/why-cpp-linter.md
@@ -1,8 +1,6 @@
---
title: Why cpp-linter?
description: How cpp-linter compares with other clang-format and clang-tidy GitHub Actions and pre-commit hooks, and how to migrate.
-hide:
- - navigation
---
# Why cpp-linter?
diff --git a/mkdocs.yml b/mkdocs.yml
index cdb3869..2c73afd 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -11,17 +11,20 @@ exclude_docs: |
nav:
- Home: index.md
- - Get started: getting-started.md
- - Packages: packages.md
+ - Docs:
+ - Get started: getting-started.md
+ - Packages: packages.md
+ - Other CI: other-ci.md
+ - AI coding agents: ai-coding-agents.md
- Playground: playground.md
- - Other CI: other-ci.md
- - AI coding agents: ai-coding-agents.md
- - Why cpp-linter: why-cpp-linter.md
- - Showcase: showcase.md
+ - Why cpp-linter:
+ - Why cpp-linter: why-cpp-linter.md
+ - Showcase: showcase.md
- Blog:
- blog/index.md
- - Community: discussion.md
- - Sponsor: sponsor.md
+ - Community:
+ - Discussions: discussion.md
+ - Sponsor: sponsor.md
theme:
name: material