README.rst 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. cpplint - static code checker for C++
  2. =====================================
  3. .. image:: https://travis-ci.org/cpplint/cpplint.svg?branch=master
  4. :target: https://travis-ci.org/cpplint/cpplint
  5. .. image:: https://img.shields.io/pypi/v/cpplint.svg
  6. :target: https://pypi.python.org/pypi/cpplint
  7. .. image:: https://img.shields.io/pypi/pyversions/cpplint.svg
  8. :target: https://pypi.python.org/pypi/cpplint
  9. .. image:: https://img.shields.io/pypi/status/cpplint.svg
  10. :target: https://pypi.python.org/pypi/cpplint
  11. .. image:: https://img.shields.io/pypi/l/cpplint.svg
  12. :target: https://pypi.python.org/pypi/cpplint
  13. .. image:: https://img.shields.io/pypi/dd/cpplint.svg
  14. :target: https://pypi.python.org/pypi/cpplint
  15. .. image:: https://img.shields.io/pypi/dw/cpplint.svg
  16. :target: https://pypi.python.org/pypi/cpplint
  17. .. image:: https://img.shields.io/pypi/dm/cpplint.svg
  18. :target: https://pypi.python.org/pypi/cpplint
  19. Cpplint is a command-line tool to check C/C++ files for style issues following `Google's C++ style guide <http://google.github.io/styleguide/cppguide.html>`_.
  20. Cpplint is developed and maintained by Google Inc. at `google/styleguide <https://github.com/google/styleguide>`_, also see see the `wikipedia entry <http://en.wikipedia.org/wiki/Cpplint>`_
  21. While Google maintains cpplint, Google is not (very) responsive to issues and pull requests, this fork aims to be (somewhat) more open to add fixes to cpplint to enable fixes, when those fixes make cpplint usable in wider contexts.
  22. Installation
  23. ============
  24. To install cpplint from PyPI, run:
  25. .. code-block:: bash
  26. $ pip install cpplint
  27. Then run it with:
  28. .. code-block:: bash
  29. $ cpplint [OPTIONS] files
  30. For full usage instructions, run:
  31. .. code-block:: bash
  32. $ cpplint --help
  33. Changes
  34. -------
  35. The modifications in this fork are minor fixes and cosmetic changes:
  36. * more default extensions
  37. * python 3 compatibility
  38. * customizable file extensions with the --extensions argument
  39. * continuous integration on travis
  40. * support for recursive file discovery via the --recursive argument
  41. * support for excluding files via --exclude
  42. * JUnit XML output format
  43. * Overriding repository root auto-detection via --repository
  44. * Support ``#pragma once`` as an alternative to header include guards
  45. Acknowledgements
  46. ----------------
  47. Thanks to Google Inc. for open-sourcing their in-house tool.
  48. Thanks to maintainers of the fork
  49. * `tkruse <https://github.com/tkruse>`_
  50. * `mattyclarkson <https://github.com/mattyclarkson>`_
  51. * `theandrewdavis <https://github.com/theandrewdavis>`_