Skip to content
@cpp-linter

cpp-linter

Lint your C/C++ code in workflow

cpp-linter brand logo

Automated C/C++ linting and formatting for your CI/CD pipelines and local workflows.

Documentation License: MIT GitHub stars


📖 About

cpp-linter bundles the power of clang-format, clang-tidy, and other LLVM tools into packages that are easy to install, integrate, and maintain. Whether you’re linting a single file locally or enforcing code quality across dozens of repos in CI, cpp-linter has you covered.

We target C/C++ developers and DevOps engineers who want reliable clang tooling without the build-from-source headache.


🚀 Get Started

Integrate cpp-linter into your workflow in minutes:

  • cpp-linter-action — GitHub Action that runs clang-format and clang-tidy on PRs and pushes, posting inline annotations.
  • cpp-linter-hookspre-commit hooks for local development — catch issues before they hit CI.

🔧 Clang Tools — Simplified

We provide ready-to-use binaries, Docker images, and Python wheels of key clang tools:

Package Description
clang-tools-static-binaries Statically-linked clang-format, clang-tidy, clang-query, and clang-apply-replacements binaries
clang-tools-docker Docker images with pre-installed clang-format and clang-tidy
clang-tools-wheel Redistribute clang-format and clang-tidy Python wheels

📦 Easy Installation

Prefer modern package managers? Install clang-format, clang-tidy, clang-query, and more via:

  • pippip install clang-tools
  • asdfasdf plugin add clang-tools https://github.com/cpp-linter/asdf-clang-tools

🤝 Contributing

We welcome contributions of all kinds — bug reports, feature requests, documentation improvements, and code.


Made with ❤️ by the cpp-linter community

Pinned Loading

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

    A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of file-annotations, thread-comments, workflow step-summary, and Pull Request…

    141 23

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

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

    Python 43 5

  3. cpp-linter cpp-linter Public

    cpp-linter core Python executable package

    Python 34 11

  4. clang-tools-pip clang-tools-pip Public

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

    Python 10 1

  5. clang-tools-docker clang-tools-docker Public

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

    HCL 15 1

  6. clang-tools-static-binaries clang-tools-static-binaries Public

    static-linked versions of clang tools for Linux, Mac OS X and Windows

    Python 17 4

Repositories

Showing 10 of 14 repositories

Top languages

Loading…

Most used topics

Loading…