[clang-tools-extra] [llvm] [clang] Add clang-tidy check to suggest replacement of conditional statement with std::min/std::max (PR #77816)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 19 15:16:17 PST 2024


================
@@ -0,0 +1,32 @@
+.. title:: clang-tidy - readability-use-std-min-max
+
+readability-use-std-min-max
+===========================
+
+Replaces certain conditionals with ``std::min`` or ``std::max`` for readability,
+promoting use of standard library functions. Note: This may impact
----------------
5chmidti wrote:

Please make sure that the first sentence is the same as in the header. The release notes (minus the second half of the sentence) and the header have the same one, so you would probably want to update this one with the one from the header.

https://github.com/llvm/llvm-project/pull/77816


More information about the cfe-commits mailing list