Issue |
145196
|
Summary |
[clang-tidy] Check request: readability-use-initializer-list-for-minmax
|
Labels |
clang-tidy
|
Assignees |
|
Reporter |
denzor200
|
Need a check that will find nested calls of `std::min` or `std::max`. The check will suggest to use overloaded for `std::initializer_list` versions.
BEFORE:
```
std::min(std::min(a, b), std::min(c, d));
```
AFTER:
```
std::min({a, b, c, d});
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs