| Issue |
107594
|
| Summary |
[clang-tidy] False positive modernize-min-max-use-initializer-list with mixed types
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
chrchr-github
|
~~~c++
#include <algorithm>
int f(int a, int b, char c) {
return std::max<int>({ a, b, c });
}
~~~
~~~
<source>:4:12: warning: do not use nested 'std::max' calls, use an initializer list instead [modernize-min-max-use-initializer-list]
4 | return std::max<int>({a, b, c});
| ^ ~
| static_cast<int>(c)
~~~
https://godbolt.org/z/xnYx71nTe
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs