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

The clang tools also come as static binaries for Linux, macOS and Windows, npm packages, a Homebrew tap for macOS, an asdf plugin and Docker images.

Maintained by two volunteers, @shenxianpeng and @2bndy5. Sponsor the project through Open Collective; 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.

    147 24

  2. cpp-linter-hooks cpp-linter-hooks Public

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

    Python 50 10

  3. cpp-linter cpp-linter Public

    cpp-linter core Python executable package

    Python 35 13

  4. 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

  5. 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 23 5

  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 19 repositories
  • clang-tools-pip Public

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

    cpp-linter/clang-tools-pip's past year of commit activity
    Python 11 MIT 1 1 0 Updated Oct 27, 2026
  • cpp-linter-action Public

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

    cpp-linter/cpp-linter-action's past year of commit activity
    147 MIT 24 1 (1 issue needs help) 0 Updated Oct 26, 2026
  • cpp-linter.github.io Public

    cpp-linter organization website

    cpp-linter/cpp-linter.github.io's past year of commit activity
    Python 1 MIT 0 0 0 Updated Oct 26, 2026
  • cpp-linter-hooks Public

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

    cpp-linter/cpp-linter-hooks's past year of commit activity
    Python 50 MIT 10 0 0 Updated Oct 26, 2026
  • 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.

    cpp-linter/cpp-linter-rs's past year of commit activity
    Rust 4 MIT 1 6 0 Updated Oct 26, 2026
  • test-cpp-linter-action Public

    Test cpp-linter-action

    cpp-linter/test-cpp-linter-action's past year of commit activity
    C++ 0 MIT 1 0 2 Updated Oct 25, 2026
  • homebrew-tap Public

    Homebrew tap for clang-tools-static-binaries — clang-format, clang-tidy, clang-query, clang-apply-replacements, clang-include-cleaner

    cpp-linter/homebrew-tap's past year of commit activity
    Ruby 0 MIT 0 0 0 Updated Oct 25, 2026
  • clang-tools-docker Public

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

    cpp-linter/clang-tools-docker's past year of commit activity
    Dockerfile 15 1 0 0 Updated Oct 24, 2026
  • clang-tools-static-binaries Public

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

    cpp-linter/clang-tools-static-binaries's past year of commit activity
    Python 23 Unlicense 5 0 0 Updated Oct 24, 2026
  • cpp-linter Public

    cpp-linter core Python executable package

    cpp-linter/cpp-linter's past year of commit activity
    Python 35 MIT 13 2 0 Updated Oct 23, 2026