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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Wrong spacing in arithmetic operations
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          prj-
      </td>
    </tr>
</table>

<pre>
    ```
$ cat foo.c
static const float foo[1][1][3] = {
  {{M*H*H, H *M *H, H *H *M}, {P*H*H, L *M *H, L *H *M}},
};
$ clang-format foo.c && clang-format --version
static const float foo[1][1][3] = {
    {{M * H * H, H *M *H, H *H *M}, {P * H * H, L *M *H, L *H *M}},
};
clang-format version 20.1.4
$ clang-format-21 foo.c && clang-format-21 --version
static const float foo[1][1][3] = {
    {{M * H * H, H * M *H, H * H *M}, {P * H * H, L * M *H, L * H *M}},
};
Debian clang-format version 21.0.0 (++20250501111520+21aa7b8138a1-1~exp1~20250501111702.2812)
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0lM9unDAQxp9muIxA9hjz58ABilY5JFJvPRvWsI5YjGxv1F7y7BW7m2ZZpVWqqhJoxAyfZ36fGJT3Zpy1rkA2INtIncLBumpxz3HU2f2PCjJ2vVgNlGKvAg7WJj2w2gcVTI-9nX3AYbKXEsiGg2zfgwDZIogWIW-A1XiOefMEVD9c7i_4gED1E24eLznI2zUDefP1VvC4FTxuBWfNOnHegmjeRp_UPMaDdcc3BgTKgLJtJY5ftPPGzv9A-ItxnehCg5_nvBf9JeuG5sqCxBKepB84ERP_vRlr8f_7gXeG4OccwTtL8A-etLozasaPreEJSxgCFUANUEOMJJOMc84lsTXBlcq7gotC8Zi_6u8Lf715KWeUUMEJqFxbvi1MtK_EvhSlinTF8zQjmVKRRoeqkCrnaVkOcqCyK3s9sCzTUsq9kqnqWGSq6-mCZaJgaaLLnA-ksqFPh74TElKmj8pMyTS9HBPrxsh4f9IVF4UoKJpUpyd_XmmiW2QgWpfcVasu7k6jh5RNxgf_flIwYTr_DjZC2eI3Z-cR_aJ6M49oZlTOhMNRrx-EXbRTwdjZRyc3VYcQFg-iBtoB7UYTDqcu6e0RaLf2uYZ4cfZZ9wFodx7fA-2uBC8V_QwAAP__1GA9Fw">