The assert() documentation and linter are redundant and confusing:
- The source code already refuses to compile with
assert()disabled. - They violate the assumptions about
Assert(), which requires side effects. - The existing linter doesn't enforce the guideline, only checking for
++and--side effects.
Fix all issues by removing the docs and the linter. See also #26684 (review)
Going forward everyone is free to use whatever code in this regard they think is the easiest to read. Also, everyone is still free to share style-nits, if they think it is a good use of their time and of the pull request author. Finally, the author is still free to dismiss or ignore this style-nit, or any other style-nit.