Background: For the last couple of months, there have been requests
from external contributors for a style linting tool. I've just finish
cleaning Google's cpplint.py up for public release.

cpplint.py takes file names as input and returns file/line number
pairs with error messages about style violations. By default it
outputs in a format friendly to emacs compile-mode, but can output
Visual Studio compatible errors with the "--output=vs7" option. See
cpplint.py --help for more details. cpplint.py is not perfect as it is
based on regular expressions--thus it won't catch everything and will
have the occasional false positive.

John is planning on integrating this directly with gcl, but if you
want to run it right now, the python script is available at:

  http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py

For those who are interested, I've also released Google's indentation
rules for emacs:

  http://google-styleguide.googlecode.com/svn/trunk/google-c-style.el

-- Elliot

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to