================
@@ -75,9 +75,9 @@ Examples:
an implicit conversion of an integer quantity ``i & 1`` to ``bool`` and
becomes ``return (i & 1) != 0;``
- 6. Given ``struct X { explicit operator bool(); };``, and an instance ``x``
of
- ``struct X``, the conditional return ``if (x) return true; return false;``
- becomes ``return static_cast<bool>(x);``
+ 6. Given ``struct X { explicit operator bool(); };``, and an instance ``x``
+ of ``struct X``, the conditional return ``if (x) return true;
+ return false;`` becomes ``return static_cast<bool>(x);``
----------------
vbvictor wrote:
Can we make "conditional return" in full line on next line (without separation)
https://github.com/llvm/llvm-project/pull/168049
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits