mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-12 14:15:15 +00:00
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:
1 parent
35fd3f0167
commit
7a7a2f510e
1 file changed
+256
-292
+256
-292
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user