Skip to content

Commit

Permalink
Update C++ styleguide
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zetafunction committed May 20, 2020
1 parent 35fd3f0 commit 7a7a2f5
Showing 1 changed file with 259 additions and 295 deletions.
Loading

0 comments on commit 7a7a2f5

Please sign in to comment.