Why does Clang warn: `’&&’ within ‘||’`?

The natural tendency is to read it left to right, and it’s easy to forget the operator precedence. That said, it’s just a warning, and if you know what you’re doing and your own style allows it, feel free to suppress it.

Leave a Comment