<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/107594>107594</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] False positive modernize-min-max-use-initializer-list with mixed types
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          chrchr-github
      </td>
    </tr>
</table>

<pre>
    ~~~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
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMk09vozwQxj_NcBkRmTGEcuCQP-UTvJf3tDJmCl4ZE9mmTXvIZ185zW6z0R5qIfxI9vxm_IytQjCjY26h2kN1zNQap8W3evJ68vlo4rT2Wb8M7-3lctFA-_SJI4gdkDRO23VgBHlQdly8idMM8vm2fv0bF_EF6CnNCuiASfRJ6El51EANQn1DIiJ6jqt3GOIAcgdyN6szyINxMYHpCer9J-eTgVAfgRqQv4uqj5_icrk8CJCHsKxecwLJXQlyVxDIHb4p74wbkxwWdEvENTA6DpEHBKr_KoVq1MrakLKnbcqhcSYaZc0He7QmRDQuRFYDQrWfl4G9Mx-cz8blszrna-D8LiJPEVAdvwwoEeoDfs-KOycejLgC_pBuA6pn_Me4GXTdHaKKRv_QKsT7XKlPD35OMZ5CKow6oG5chn6xcbP4Eaj7AOrO7v9zXbj_OBtaOTSyURm3RU3VVkoh6mxqudCadSG5aV6qsii2_Utf1kI96aovStFnpiVBpWjEtiilENsNc9UPgnRfN6xkX0EpeFbGbqx9nVPuzISwcluIumrKzKqebbhebSJtlRvzaIZ3IEpX3bcpKu_XMUApUh_CFyeaaK-P4i6sOmKnbGA8LcFE88r4vfbim4kTzubMA8b3E4ds9bZ98O_60jZ6mYG6VMVtyk9--ck6AnXXowWg7na615Z-BQAA__85-B7D">