Style guides for Google-originated open-source projects
Go to file
mark@chromium.org 8190c132fd Update C++ style guide to 3.245:
- Relax the rule for sizeof(varname) vs. sizeof(type).
 - Allow an exception for nonconst reference parameters where
   convention dictates their use, such as for swap.
 - C++11: allow static_assert.
 - Require non-trivial fall-through between cases in switch
   statements to be annotated. Trivial fall-through includes
   consecutive case labels with no intervening code, and no comment
   is required in these cases.
 - C++11: allow constexpr.
 - Revise the "Integer Types" section to note type-width problems.
 - Clarify that the "arguments on subsequent lines" function call
   style is acceptable even when the 80-column limit doesn't require
   it.
 - Boost: allow part of Polygon.
 - C++11: allow <tuple>.

Update Objective-C style guide to 2.52:
 - Fix ARC example to not imply the use of @private in .m files.
 - Add an example to the "Category Names" section.
 - Require that ARC-using files insert preprocessor directives that
   generate an error when compiling without ARC.
 - Fix spacing around the *s in the ARC example per the C++ style
   guide.

Update Python style guide to 2.48:
 - Allow comments with URLs to exceed 80 characters per line.
 - Update outdated implicit-line-joining URLs.

Update HTML/CSS style guide to 2.21:
 - Consistent use of title case.
 - Add new "Declaration Block Separation" section.
 - Add a CSS example to the "Capitalization" section.
 - Minor fixes to whitespace.

Update JavaScript style to guide to 2.72:
 - Make it clear that the injunction against aliasing namespaces only
   applies to local aliases, not goog.scope.
 - Clarify the style guide's recommendation on array/object literals.
 - Add documentation on @private {type}, @protected {type}, and
   @const {type}.
 - Make JSDoc descriptions required only if not obvious.
 - Clarify that only private properties and methods need a trailing
   underscore.
 - Fix spelling of arv's name.

Update Common Lisp style guide to 1.18:
 - Macro-defining macros are harder to understand for everyone, not
   just for the "uninitiated." There's no need to condescend.

In all of the above style guides:
 - The guide source is now encoded as UTF-8. The numeric character
   references have been replaced with raw UTF-8-encoded characters.
2013-03-21 16:03:26 +00:00
cpplint Updated cpplint.py to #224: 2013-01-14 17:51:48 +00:00
cppguide.xml Update C++ style guide to 3.245: 2013-03-21 16:03:26 +00:00
eclipse-cpp-google-style.xml Add Google C++ Eclipse style config. 2012-06-29 19:26:15 +00:00
eclipse-java-google-style.xml Adding config files for formatting for IntelliJ and Eclipse 2011-08-30 11:23:49 +00:00
google_python_style.vim New file google_python_style.vim. 2010-11-29 20:32:06 +00:00
google-c-style.el Update google-c-style.el to #6: 2009-10-09 21:51:56 +00:00
google-r-style.html 2009-07-21 18:07:18 +00:00
htmlcssguide.xml Update C++ style guide to 3.245: 2013-03-21 16:03:26 +00:00
intellij-java-google-style.xml Adding config files for formatting for IntelliJ and Eclipse 2011-08-30 11:23:49 +00:00
javascriptguide.xml Update C++ style guide to 3.245: 2013-03-21 16:03:26 +00:00
jsoncstyleguide_example_01.png Adding first iteration of the JSON-C Style Guide for JSON APIs 2010-02-22 22:39:56 +00:00
jsoncstyleguide_example_02.png Adding first iteration of the JSON-C Style Guide for JSON APIs 2010-02-22 22:39:56 +00:00
jsoncstyleguide.html Update look and feel of the style guides 2010-07-12 21:58:39 +00:00
jsoncstyleguide.xml Adding licensing footer 2010-03-08 18:32:48 +00:00
lispguide.xml Update C++ style guide to 3.245: 2013-03-21 16:03:26 +00:00
objcguide.xml Update C++ style guide to 3.245: 2013-03-21 16:03:26 +00:00
pyguide.html Update C++ style guide to 3.245: 2013-03-21 16:03:26 +00:00
shell.xml Initial public release of Shell Style Guide (1.25). 2013-02-15 20:56:05 +00:00
styleguide.css Update look and feel of the style guides 2010-07-12 21:58:39 +00:00
styleguide.xsl Update C++ style guide to 3.231: 2012-11-28 20:26:27 +00:00
xmlstyle.html Checked in scrubbed version of Google XML Document Format Style Guide 2009-03-18 17:23:38 +00:00