<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJyllMFu2zAMhp9GvhA2bDlpkoMPbbNhPey2S0-DLNO2VsUKJDpp9vSjlKRIit4GyI4piuTHX1Ja152aX6MJwGMyGkGPqN-EfIZ2JjAU55UNDsibYUCPHfTOg4LdbMnsrdGKjJvA9eAmewLtpkBqolCIcivKR_FQXkYyrZsGeAdRb6ECIR-hEvXTjeuUXIuzq5SLD--nPC9Ao5ne-H0hhjC62XZghsl5hDDrEYKhOdEV8AIqhHmHMYDdsSlG3e2NRQ9H5SfDxU1_zndp4XOLHgNPxFg3U-763KtpwNh5jOowkJnOK-m0x2v_6f2TmdwBfdQ1Lg4zaxmIxbzWDvN-zwVCDOcK3CgzkNG_tQok6ueojqi_Cbm-EUdueF0BP9wROTm3dFDeRPLEdE6TAldPN1GrLU9D55B33NFH5QR2wbmDf4EWreEKaUWLREmzExyT4i3PO5jD2a00a26TAldl7mUU9WPEMhN9QVVAOovnJDZW8G9s3rHdSnXHORLtA6cX8juPwXWts1Q4P7D1l5_X6v112qzXmHVN3W3qjcrUTKPzjR57VjmbvW0-JTE0zm3BJ4UNaw_Xn3zv3R_UxKbhc4WBP5ZyXT5kY9NXJfabZduveAaXy1Z2un_YKN12al22MrOK9QyNWD4JKbXlQ5ST6U5siOU2-38E08hSVpWUZSWXdbUuVL2S9aIta71qy9W6FIsSd8rYIuaJAmW-SSnbeQjstCbw_f1w8s3hW4WYiJmQDFlseC0TTJibXdxbQ_nRdBg3KF6N-z3Pr1dnxyEH3CH_P2SJuknI_wAOOXrI>52806</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            bugprone-implicit-widening-of-multiplication-result improvements
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          chfast
      </td>
    </tr>
</table>

<pre>
    This is nice check, but it is also triggered for a multiplication of only constants.
```
long x = 1 * 1;
long y = 4 * 1024;
```
I think the check should ignore such situation. I assume there is a compiler warning if the constant multiplication result is out-of-range of the destination type.

Moreover, the suggested warning suppression is `static_cast<long>(4 * 1024)`. However a variant of this `long{4 * 1024}` does not suppress the warning.

I believe the better way would be to use the actual type of the multiplication: `int{4 * 1024}`. This actually works as the warning suppression.

https://godbolt.org/z/Y1xYn988e
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtk01v2zAMhn-NfCFs2HK-fPChbTash9126WmQZcbWqliBRCfNfv0oJSmSYoBjh6JIPnxFda4_t79GE4CfyWgEPaJ-F_IFupnAUFxXNjggb4YBPfawcx4U7GdL5mCNVmTcBG4HbrJn0G4KpCYKhSi3onwSq_L6JNO6aYAPEPUWKhDyCSpRP9-5zsm1uLhKufj0fsnzCjSa6Z3fV2IIo5ttD2aYnEcIsx4hGJoTXQGvoEKY9xgD2B2bYtT9wVj0cFJ-Mlzc7C75ri18bdFj4IUY62bK3S73ahowdh6jegxkpstOOh_w1n96_2Qmd0QfdY2bw8xaBmIxb7XDfDhwgRDDuQI3ygxk9G-tAon6Jaoj6m9Cbu7EkQ3vK-CHOyEn55aOyptInpguaVLg-vkuar3lZegd8ok7-qycwK44D_Cv0KE1XCHt6JAoaXaGU1K843UHc7i4lWbNbVLgpsyjjKJ-ilhmov9QFZBm8ZLExgr-nc0HtnupHjhHokPg9EJ-52dwfecsFc4PbP3l31v18TY1mw1mfVv3Td2ojAxZbLt5OHg3YW72EdNQfjI9xlrxlB_x89sU7DnkiHvkUc9mb9sv1Q2Nc1fwiLFh7fH2yTnqD2pi0_BAYuA_S7kpV9nYqt26UdiUTdWvV_ViWa-a1aLUfVMpxOVSZ1bxQYRWLJ-FlNry9OVk-jMbYrnNTCtLWVVSlpVc1tWmUPVa1ouurPW6K9ebUixK3CtjiwgSdcl8m5i4_8BOawJf208nXxi-TIipHudXM43Ot3rc8URmib5N6P8A0rVkcg">