<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56728>56728</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] wrong fixup for bugprone-implicit-widening-of-multiplication-result
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Febbe
</td>
</tr>
</table>
<pre>
```
$ clang-tidy --version
LLVM (http://llvm.org/):
LLVM version 14.0.6
Optimized build.
Default target: x86_64-pc-windows-msvc
Host CPU: znver2
```
clang tidy tries to fix the following:
```
TEST(test_mem, std_list_in_vmem) {
monotonic_virtual_memory_resource vmem(1024 * 1024, 1024 * 1024 * 1024);
{/*<code>*/}
```
```
TEST(test_mem, std_list_in_vmem) {
monotonic_virtual_memory_resource vmem(1024 * 1024, 1024 * 1024 * 1024);
{/*<code>*/}
```
```
// TODO this does not test
TEST(test_mem, std_list_in_vmem) {
monotonic_virtual_memory_resource vmem(static_cast<size_t>(1024 * )1024, 1024 * 1024 * 1024);
{
```
This results in code which is not compilable anymore.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzlVE2PmzAQ_TVwGYGIIXwcOOwmu-phq63UtFdkzBBcGYywSTb76zsmyWZbtZV66aUSAntmPPPewzO1bk6ll0aXJ9p60Z3HEhCKD_vAyuYEQXDAyUg9nL1PT18_gsfyztrRiyn4kR6lDn2op_2yK5x5iQVYoi_nYZWEUZheXc-jlb18xQbqWaomvNq32PJZWbB82qOlXPCSp1WaBKMIjnJo9NEEvTmIa_wHbSxsPn1xka8D1WIXGj-xWt4LL1h42UmiAauhlS9gO4RWK6Wpwv4N_y8T7R4-74i_RWOrHnuPbcDYplKS9nKoDoutAC-7vyIE6PWgrR6kqA5ysjNX7qSeTtWERs-TQDgfy1cRie-xO3ALl_oHwzsPifwuvyvmpL_z4o3QDXrxg9uQKdv-QY3_htn5lsLueftMv1oaaDT9e0IOjuw_YG8stxQlOFWLN4aufWUXKjddKPnfS_N7BXaOJsGgVjIgB3DiwbGTogN5pi50P0rFa4XAhxPBxtDHcpWu8zxZZVnkN2XcFHHBfSutwtJb39_GgrfewnHS1EzUPvNIzTNRH-9HMmEg-1FJIS31a4MDdVSg26AnJNLZSQk9BGdo_jyp0o0S8zZL9tJ2cx0SustguXwCyv0NhaWtNGZGQ4t1mrHc78oVNkmO2Io64wWri6hZr9fIsySOa5bz1ieaqIyj4DE24BGWFLQmHr4sWcRYlLF0FTOWFGEmeMtyUaQiTlfIWi-JsOdShdc550_lAokYG3K6O2JuTm6M3A-4KOby89l2eiofsa7RXwqXC_Dv5NeZtA">