A package for linting C/C++ code with clang-tidy and/or clang-format to collect feedback provided in the form of
Warning
This project is still experimental and subject to drastic changes. Please use the pure python cpp-linter package until this project is ready for deployment.
This package is available in several programming languages (through their respective package managers).
Install from source code hosted at crates.io:
cargo install cpp-linter
Install a pre-compiled binary from GitHub releases:
First install cargo-binstall
.
cargo binstall cpp-linter
Install the python package:
pip install cpp-linter
Pre-releases are uploaded to test-pypi:
pip install -i https://test.pypi.org/simple/ cpp-linter
Install the Node.js binding:
npm -g install @cpp-linter/cpp-linter
For usage in a CI workflow, see the cpp-linter/cpp-linter-action repository.
For the description of supported Command Line Interface options, see the CLI documentation.
Using --file-annotations
:
Using --thread-comments
:
Using --step-summary
:
Using --tidy-review
:
Using --format-review
:
To provide feedback (requesting a feature or reporting a bug) please post to issues.
The scripts and documentation in this project are released under the MIT license.
As for dependencies (that are redistributed by us in binary form) and their licenses, refer to THIRD-PARTY LICENSES.