Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

cpplint

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
7.4 Club score Visit github.com

What cpplint is

cpplint is a free, open-source command-line checker for C and C++ files, using Google’s C++ style guide as its reference. It runs on Linux, macOS and Windows, and the project recommends installing its PyPI package as a uv tool. The package requires Python 3.9 or later and uses the BSD-3-Clause license. File handling includes recursive discovery, exclusions and custom extensions. The project lists support for newer C++ features and for #pragma once as an alternative to header guards. Developers can suppress checks across code blocks with NOLINTBEGIN and NOLINTEND markers. cpplint can run as a pre-commit hook and is included in MegaLinter for continuous integration. The project says Google no longer maintains the public version; this fork targets modern specifications and broader use. The repository provides maintainers, issues, pull requests, discussions and contribution guidance. PyPI offers a platform-independent Python wheel and source distribution.

Who it suits

cpplint suits developers checking C and C++ source for style issues. It is useful in command-line, pre-commit and CI workflows across the listed operating systems.

Good to know, and what to watch

  • Free and open source
  • Runs on three operating systems
  • Recursive file discovery
  • Pre-commit and CI integration
  • Supports modern C++ features
  • Requires Python 3.9 or later
  • No IDE support
  • Google no longer maintains the public version
  • Command-line tool

cpplint

Free

Open source

The verdict

cpplint provides focused C/C++ style checking with configurable file selection and suppression markers. Its pre-commit and MegaLinter integrations make it suitable for automated development workflows.

What the maker publishes

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

Checked against the maker's pages on 11 Oct 2026.