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

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 11 10:51:47 PST 2024


================
@@ -8,6 +8,7 @@ add_clang_library(clangTidyReadabilityModule
   AvoidReturnWithVoidValueCheck.cpp
   AvoidUnconditionalPreprocessorIfCheck.cpp
   BracesAroundStatementsCheck.cpp
+  ConditionaltostdminmaxCheck.cpp
----------------
EugeneZelenko wrote:

I think `ConditionalToStdMinMaxCheck` would be more readable identifier.

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


More information about the cfe-commits mailing list