Skip to main content

This project continues the work of cpplint, a C++ style checker following Google’s C++ style guide. It provides cpplint as a PyPI package and adds a few features and fixes. It is maintained as a fork of google/styleguide in hopes that it can be merged in the future.

To install cpplint from PyPI, run:

$ pip install cpplint

Then run it with:

$ cpplint [OPTIONS] files

For full usage instructions, run:

$ cpplint --help

Changes

The modifications in this branch are minor fixes and cosmetic changes:

  • more default extensions

  • python 3k compatibility

  • minor fixes around default file extensions

  • continuous integration on travis

  • support for recursive file discovery via the –recursive argument

  • support for excluding files via –exclude

  • JUnit XML output format

  • Overriding repository root auto-detection via –repository

  • Support #pragma once as an alternative to header include guards

  • Add quiet option to suppress non error-related output

Maintaining

To release a new version:

vi setup.py # increment the version
vi changelog.rst # log changes
git add setup.py changelog.rst
git commit -m "Releasing 0.0.6"
git tag 0.0.6
git push
git push --tags
python setup.py sdist register -r pypi
python setup.py sdist upload -r pypi

Thanks to tkruse for putting cpplint on PyPI and maintaining the PyPI version for many years!

https://travis-ci.org/theandrewdavis/cpplint.svg

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpplint-1.2.1.tar.gz (72.0 kB view details)

Uploaded Source

File details

Details for the file cpplint-1.2.1.tar.gz.

File metadata

  • Download URL: cpplint-1.2.1.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cpplint-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8f125c4066abfdd217e902cf55e6e4dbc6b1a10816016f645d605de7af24cd68
MD5 953399e33da57d2c2120d1248756adfc
BLAKE2b-256 8664d38c1aecd20ae3cc063902b9917d0a0ff710f170b26dac7b2491e7147703

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page