Skip to content
@cpp-linter

cpp-linter

Lint your C/C++ code in workflow
cpp-linter: C/C++ pull requests that arrive already checked.

cpp-linter runs clang-format and clang-tidy on C and C++ code: on every pull request, before every commit and on your laptop, at the same LLVM version.

Website · Get started · Showcase · Discussions · Sponsor

Pick where the checks run

Where Project Start with
On every pull request cpp-linter-action uses: cpp-linter/cpp-linter-action@v2
Before every commit cpp-linter-hooks args: [--style=file, --version=21]
Locally or in other CI cpp-linter pip install cpp-linter
Just the clang tools clang-tools pip install clang-tools

Get the tools themselves

Static binaries for LLVM 12–23 on six platforms, downloaded 540,000+ times. Also packaged for:

Maintained by two volunteers, @shenxianpeng and @2bndy5. Sponsor the project on GitHub Sponsors; see the sponsor tiers.

Pinned Loading

  1. cpp-linter-action cpp-linter-action Public

    Lint C/C++ pull requests with clang-format and clang-tidy, and post the results as annotations, comments or reviews.

    150 24

  2. clang-tools-static-binaries clang-tools-static-binaries Public

    Static binaries of clang-format, clang-tidy and other LLVM tools, so you can use them without building LLVM.

    Python 25 5

  3. cpp-linter-hooks cpp-linter-hooks Public

    C/C++ linter pre-commit hooks powered by clang-format and clang-tidy

    Python 50 9

  4. cpp-linter-rs cpp-linter-rs Public

    A CLI tool that scans a batch of files with clang-tidy and/or clang-format, then provides feedback in the form of comments, annotations, summaries, and reviews.

    Rust 4 1

  5. clang-tools-pip clang-tools-pip Public

    Install clang-format, clang-tidy, clang-query, clang-apply-replacements and clang-include-cleaner binaries with clang-tools CLI.

    Python 11 1

  6. clang-tools-docker clang-tools-docker Public

    🐳 Clang Tools Docker image includes the clang-format and clang-tidy.

    Dockerfile 15 1

Repositories

Showing 10 of 23 repositories

Top languages

Loading…

Most used topics

Loading…