================
@@ -253,6 +253,18 @@ void testVectorSizeType() {
value = v.size();
}
+namespace gh208708 {
+void f(int &n) {
+ // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::max` instead of `<`
[readability-use-std-min-max]
+ // CHECK-FIXES: n = std::max(n, -1);
+ if (n < -1) n = -1 ;
+
+ // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `>`
[readability-use-std-min-max]
----------------
zeyi2 wrote:
```suggestion
// CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `>`
```
https://github.com/llvm/llvm-project/pull/208782
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits