================ @@ -0,0 +1,29 @@ +.. title:: clang-tidy - readability-ConditionalToStdMinMax + +readability-ConditionalToStdMinMax +================================== + +Replaces certain conditional statements with equivalent std::min or std::max expressions, +improving readability and promoting the use of standard library functions. + +Examples: + +Before: + +.. code-block:: c++ + + void foo(){ ---------------- EugeneZelenko wrote:
Please run snippets through Clang-format`. https://github.com/llvm/llvm-project/pull/77816 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits