Skip to content

Commit 8937839

Browse files
committed
docs: fix changed-files note and LLVM ranges of the clang-tidy and clang-apply-replacements wheels
1 parent 70900d2 commit 8937839

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎docs/getting-started.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ repos:
8080
```
8181

8282
Run `pre-commit install` once in each clone. `--version=21` installs the newest 21.x wheel;
83-
clang-tidy wheels cover LLVM 13 to 22. The clang-tidy hook needs a `compile_commands.json`, which
83+
clang-tidy wheels cover LLVM 13 to 23. The clang-tidy hook needs a `compile_commands.json`, which
8484
it looks for in `build/` and a few other directories; leave it out if you only run clang-tidy in
8585
CI. [Set up a clang-format pre-commit hook](blog/posts/2026-09-20-clang-format-pre-commit-hook.md)
8686
walks through the whole setup.
@@ -97,9 +97,9 @@ cpp-linter --version=21 --style=file --tidy-checks=''
9797
- It does not install the clang tools. Install them first, for example with clang-tools below;
9898
without them, `--version=21` falls back to whatever `clang-format` is on your PATH.
9999
- It exits 0 even when checks fail, so it reports findings but does not fail a build.
100-
- Locally, `--files-changed-only` and `--lines-changed-only` read `git diff`. In other CI, check
101-
the whole repository (the default): most CI systems set `CI=true`, and with it those options ask
102-
the GitHub API for the changed files.
100+
- Locally and in other CI, `--files-changed-only` and `--lines-changed-only` read `git diff`;
101+
`--diff-base` sets the commit to compare against. Only on GitHub Actions, which sets
102+
`GITHUB_ACTIONS=true`, do they ask the GitHub API for the changed files.
103103

104104
cpp-linter v2, a rewrite in Rust ([cpp-linter-rs](https://github.com/cpp-linter/cpp-linter-rs)),
105105
is in release candidates. Use the Python package until 2.0 is released.
@@ -124,5 +124,5 @@ llvm-symbolizer. The Docker images carry Ubuntu's clang-format and clang-tidy pa
124124

125125
Single tools are also on PyPI as Python wheels: `clang-format` and `clang-tidy` (the wheels
126126
cpp-linter-hooks installs), [clang-apply-replacements](https://pypi.org/project/clang-apply-replacements/)
127-
(LLVM 16 and 17) and [clang-include-cleaner](https://pypi.org/project/clang-include-cleaner/)
127+
(LLVM 16 to 23) and [clang-include-cleaner](https://pypi.org/project/clang-include-cleaner/)
128128
(LLVM 22).

‎docs/overrides/home.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ <h1 class="cl-hero__title">
153153
},
154154
{
155155
"title": "Before every commit", "name": "cpp-linter-hooks", "icon": "octicons/git-commit-24",
156-
"text": "pre-commit hooks that pip-install the clang-format and clang-tidy version you pin, on every developer's machine. clang-tidy wheels cover LLVM 13 to 22.",
156+
"text": "pre-commit hooks that pip-install the clang-format and clang-tidy version you pin, on every developer's machine. clang-tidy wheels cover LLVM 13 to 23.",
157157
"code": "args: [--style=file, --version=21]",
158158
"href": "https://github.com/cpp-linter/cpp-linter-hooks", "cta": "View on GitHub",
159159
},
@@ -212,7 +212,7 @@ <h2 class="cl-h2">Pin the same LLVM version in each tool</h2>
212212
Different clang-format releases can format the same file
213213
differently. Set the same LLVM version in the action, the pre-commit
214214
hooks and on your machine, and every step runs the same major
215-
release. The clang-tidy hook covers LLVM 13 to 22; the action and
215+
release. The clang-tidy hook covers LLVM 13 to 23; the action and
216216
clang-tools cover 12 to 23.
217217
</p>
218218
</div>

‎docs/why-cpp-linter.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ is no Docker image to build before the first result.
3838

3939
The same tools run outside the action too. The pre-commit hooks in
4040
[cpp-linter-hooks](https://github.com/cpp-linter/cpp-linter-hooks) take the same version number
41-
(the clang-tidy hook covers LLVM 13 to 22). The [cpp-linter](https://pypi.org/project/cpp-linter/)
41+
(the clang-tidy hook covers LLVM 13 to 23). The [cpp-linter](https://pypi.org/project/cpp-linter/)
4242
CLI runs from a script or another CI system; it expects the clang tools to be installed already
4343
and exits 0 even when checks fail. On a laptop, `clang-tools` installs the binaries.
4444

0 commit comments

Comments
 (0)