TLDR: The
public Google C++ styleguide has been updated with a variety of changes, most significantly allowing mutable reference arguments.
Recently the public Google styleguide was updated with a number of significant changes. Here are the biggest ones, and how they affect Chromium:
No effect:
Affects Chromium but not Blink:
- For output and in/out parameters that cannot be null, Google now prefers mutable references, instead of pointers. This is roughly equivalent to existing Blink style; the Blink styleguide has therefore been updated to remove mention of this, since it is no longer a divergence from Chromium style. Note that return values are still preferred over output parameters, including when a function needs to return multiple values.
Affects Chromium and Blink:
PK