FREEDOM251

Freedom251 › Linters

cpplint

Free plan LinuxMacWindows

Visit cpplint Alternatives Pricing

cpplint's own site

What cpplint is

cpplint is a free, open-source command-line tool for developers checking C and C++ source files against Google’s C++ style guide. It runs on Linux, macOS and Windows, and the project recommends installing the cpplint package from PyPI as a uv tool. The package requires Python 3.9 or later and is distributed under the BSD-3-Clause license.

The tool can find files recursively, exclude selected files and use customized file extensions. The project also lists support for newer C++ features and `#pragma once` as an alternative to header include guards. Developers can suppress checks across a block using `// NOLINTBEGIN` and `// NOLINTEND`. cpplint can run as a pre-commit hook and is included in MegaLinter for CI workflows. The project says Google no longer maintains the public version; this fork aims to update it for modern specifications and wider use. The repository identifies maintainers and offers GitHub issues, pull requests, discussions and contribution guidance. PyPI provides a platform-independent Python wheel and a source distribution; it reports that the 2.0.2 release artifacts were signed by GitHub Actions and verified on April 8, 2025.

Who it suits

cpplint suits developers who want command-line checks for C and C++ style issues across Linux, macOS or Windows. It can also fit workflows that run checks through pre-commit or CI with MegaLinter.

What it does well

  • Free and open source under the BSD-3-Clause license
  • Supports Linux, macOS and Windows
  • Finds files recursively and supports exclusions
  • Can run as a pre-commit hook and in MegaLinter
  • Supports block-level check suppression

What to know first

  • Requires Python 3.9 or later
  • The project reports that Google no longer maintains its public version
  • No IDE support is listed

Plans

PlanBilled and limitsPrice
cpplintNo paid plans or usage limits statedFree

As github.com lists them, read 11 Oct 2026. The maker's own page has the final word.

Getting started

  1. Visit the cpplint GitHub repository
  2. Install the cpplint package from PyPI as a uv tool
  3. Use Python 3.9 or later
  4. Run cpplint on C or C++ files, configuring recursive discovery, exclusions or file extensions as needed

Verdict

Choose cpplint if you need a free command-line style checker for C and C++ and want to run it in pre-commit or CI workflows. Developers looking for IDE support should consider that no IDE support is listed. The project is a community fork aiming to update the public version Google no longer maintains.

Questions

Is cpplint free?

Yes. It is free and open source, with no paid plans or usage limits stated.

Which operating systems does cpplint support?

The listed platforms are Linux, macOS and Windows.

What does cpplint check?

It checks C and C++ files for style issues according to Google’s C++ style guide.

How do I install cpplint?

The project recommends installing its PyPI package as a uv tool. The package requires Python 3.9 or later.

Can cpplint run in automated workflows?

Yes. It can run as a pre-commit hook and is included in MegaLinter for CI.

What license does cpplint use?

The package is distributed under the BSD-3-Clause license.

Facts from cpplint's own pages

Artifact provenance
PyPI reports that the 2.0.2 release artifacts were signed by GitHub Actions and verified by PyPI on April 8, 2025. · pypi.org, 11 Oct 2026
Audience
Cpplint is intended for developers checking C and C++ source files for style issues. · github.com, 11 Oct 2026
Distribution format
PyPI provides a Python 3 wheel tagged for any platform and a source distribution. · pypi.org, 11 Oct 2026
File selection
Cpplint supports recursive file discovery, excluding files, and customizing file extensions. · github.com, 11 Oct 2026
Installation
The project recommends installing the cpplint package from PyPI and documents installation as a uv tool. · github.com, 11 Oct 2026
Integrations
Cpplint can run as a pre-commit hook and is included in MegaLinter, an open-source linter aggregator for CI. · github.com, 11 Oct 2026
License
The package is distributed under the BSD-3-Clause license. · pypi.org, 11 Oct 2026
Modern C++
The project lists support for more modern C++ features and for #pragma once as an alternative to header include guards. · github.com, 11 Oct 2026
Project status
The project says Google no longer maintains the public version and this fork aims to update it for modern specifications and wider use. · github.com, 11 Oct 2026
Purpose
Cpplint is a command-line tool that checks C/C++ files for style issues according to Google’s C++ style guide. · github.com, 11 Oct 2026
Python requirement
The PyPI package requires Python 3.9 or later. · pypi.org, 11 Oct 2026
Support
The repository identifies maintainers and provides GitHub issues, pull requests, discussions, and contribution guidance. · github.com, 11 Oct 2026
Suppressions
The project supports skipping entire code blocks with // NOLINTBEGIN and // NOLINTEND. · github.com, 11 Oct 2026

Where cpplint stands on Freedom251

Look at these too