cpp-linter
The Python command behind cpp-linter-action: it runs clang-format and clang-tidy on C and C++ files, locally or in other CI.
Website · Documentation · Get started · Discussions
Quick start
With the clang tools installed (see Limitations):
pip install cpp-linter
cpp-linter --version=21 --style=file --tidy-checks=''
Usage
For usage in a GitHub Actions workflow, see the cpp-linter/cpp-linter-action repository
For the description of supported Command Line Interface options, see the CLI documentation
Applying fixes
Passing the --fix option makes cpp-linter apply clang-format fixes in-place to any files that have formatting problems.
Limitations
cpp-linter does not install the clang tools. Install them first, for example with clang-tools; without them, --version=21 falls back to whatever clang-format and clang-tidy are on your PATH.
It exits 0 even when checks fail, so it reports findings but does not fail a build.
--files-changed-only and --lines-changed-only read the local git diff, except in GitHub Actions (and Gitea Actions), where those options ask the server’s REST API for the changed files.
Sponsors
cpp-linter is maintained by two volunteers. Sponsor the project through Open Collective. Silver and Gold sponsors get their logo here.
Contributing
To provide feedback (requesting a feature or reporting a bug) please post to issues. To contribute changes, see CONTRIBUTING.rst.
License
The scripts and documentation in this project are released under the MIT License.
Metadata
Release files for cpp-linter 1.15.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cpp_linter-1.15.1.tar.gz | 2.5 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cpp_linter-1.15.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / cpp_linter-1.15.1.tar.gz
| Download URL | cpp_linter-1.15.1.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56619a8e626975c7ef60789c8dd8d4d4c3f14a8c9f55a65ea851f4d28fe10199
|
|
BLAKE2b-256 checksum How to use checksums |
f79592fc8d6f4b4c133124c36775d3775652bf00ed0890a5f3ad1a63183f789b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / cpp_linter-1.15.1-py3-none-any.whl
| Download URL | cpp_linter-1.15.1-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
707f505b6f182fa543663089317c6e2022b175483b389bbf1d96ab6ac636492c
|
|
BLAKE2b-256 checksum How to use checksums |
c617d8c68649a583d488668135e191cbba161eae76f2dec5224ed3f22693a870
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for cpp-linter 1.15.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cpp_linter-1.15.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.