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

    <tr>
        <th>Summary</th>
        <td>
            clang-format: Incorrectly formats multiplication as if it was pointer dereference
        </td>
    </tr>

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

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

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

<pre>
    In the attached example ([test.cpp.txt](https://github.com/user-attachments/files/17232763/test.cpp.txt), renamed to .txt so it can be attached) using the attached .clang-format settings ([clang-format.txt](https://github.com/user-attachments/files/17232766/clang-format.txt), also renamed to .txt and . prefix removed), the second line of the struct is formatted by clang-format (v 14.0.0) as if it was a pointer de-reference, and the space following the `*` is removed.  

So this...
`
constexpr Thingy kConfig = {
    {
        (uint16_t)(kScale * kThing.width_pixels),
        (uint16_t)(kScale * kThing.height_pixels),
    },
};`

Becomes:
`
constexpr Thingy kConfig = {
    {
        (uint16_t)(kScale * kThing.width_pixels),
        (uint16_t)(kScale *kThing.height_pixels),
    },
};`

The expected behaviour is the space should be maintained, or added if it it is removed (if either the space before or after the `*` is removed on the previous line, it will be added back by clang-format)



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVEGPozgT_TXOpRRkDAFy4JB0FGnOM_eRMWXw18ZGdpFO__tPhmx3Z2d3pZXmshcDZfzqvdLzkzGawSG27HBmh8tOLjT60A7BaG2c4JzvOt-_t98c0IggiaQasQe8y2m2CEw07HAmjJSpec7oTuxwYaIZiebIihMTVyaug6Fx6TLlJyauS8Sw34AmdBSZuGpjMT3zWhSirgomrk-Q4sjECwR0csIeyEOqQvRgCJR00H0yY-IISzRueOabKSvdsNc-TJIgIpFxQ3zQ_7r3myRUTFx_gd1kSBv9L1qk6yGDOaA2dwg4-dsqJf2fdERU3vVgjUPweitRWBSBibB1IOyhe4cnnUw0N8jLjGc8zUVGMDrN7E1GkDB74wgD9LgPqDGgU7gSdP3WYZYKQXtr_dsfA2UVZ-LEKp4aP3hmAIxfGD9t63cPNJqYZdmjWvHtRXkXCe9zgB-jccM7vL54p80ArLgAq8_bXwDw_LEWRLMYR3n1c5ti8_pdydV-J3hd0bI309P4czZ3tHGb3L-GGNEMI_0NBqsvH9_pvTh_CNvWMyo_4eqY_4ju3yL7x4iA9xnVakAc5c34JSR7fHoojn6xaRcmaRxJ45K7X8AHkH2P_cOWhr64KhE3GtDQiOELVofaB1yPanrs_JUrwW-RNQdMjOJ6eVLT5H9j7Roaa_NOqtc_X500hi8it3XXt0V_LI5yh21ei7ppDk3T7MZWVz0_HHilhcgVx1pWslK60roSuirKcmdawUWZcy7yKm94k2lRyqI86q6sq-Ohz1nJcZLGZtbepsyHYWdiXLDNc97Ux52VHdq4hrQQzzxFiu3QpnP7bhkiK7k1keInEhmy2D6dKk7wzSkfAiqy748EiTAtlsxsjZJkvHvOi8-0-AiL3RJs-w8xmRg8Hvs5-P-hIiauq7A1Kjdtt1b8PwAA___QagkD">