Update C++ styleguide

Major changes:
- discourage const references when the input parameter must outlive the
  call
- drop ban on mutable references
- allow rvalue-qualified methods in certain situations
- allow C-style cast when casting to void
- disallow postfix increment/decrement operators unless postfix
  semantics are required
- allow designated initializers in C++20-compliant form
- disallow macro-style naming for enumerator constant for new code
- disallow spaces inside parentheses for conditionals

The change itself is largely automated, with a few manual adjustments:
- manually restore the TOC placeholder
- removed trailing whitespace
This commit is contained in:
Daniel Cheng 2020-05-19 22:52:15 +00:00
parent 35fd3f0167
commit 7a7a2f510e

File diff suppressed because it is too large Load Diff