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

    <tr>
        <th>Summary</th>
        <td>
            Clang-format: Multiplication in macro in C is formatted wrong
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    I'm using Clang-format 15.0.3 and I have set up the .clang-format file to my liking. I'm running it through my whole existing project, but there is a problem in more complicated macros. 
It seems like Clang-format recognizes `*` as a pointer, and not a multiplication operator if there are closed parenthesis before them.
For example:
`#define MILLIS_TO_TICKS(x) (((uint64_t) (x) *RTC_TICKS_PER_SECOND) / 1000)`

I want it to look like this:
`#define MILLIS_TO_TICKS(x) (((uint64_t) (x) * RTC_TICKS_PER_SECOND) / 1000)`

There should have been a space between * and RTC_TICKS_PER_SECOND, and there was in code before formatting, but Clang removed it for some reason.
I can't find an option in .clang-format file to disable it, and it bothers me a lot.
If I put parenthesis around RTC_TICKS_PER_SECOND, then space is not removed:
#define MILLIS_TO_TICKS(x) (((uint64_t) (x) * (RTC_TICKS_PER_SECOND)) / 1000)

Is it a bug, or I just can't find the option that exists?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVGGPozYQ_TXmy2gRmCQkH_iQZi9S1LtedbvfIwMD-NZ4kD3e7PXXV4akt6l6laqeFCmAh5k37z2e8l73FrES61_E-jFRgQdy1Ss2L8omNbXfqpOQ5QjBa9vDwSjbP3TkRsWQr9MsLUDZFk4wqFcEjwxhAh4Q0uZ9aacNAhOM38DoF237FJa2LlgbG2sGHhyFfog1l4EMAr5pz_FwcvQVGxbyAHWIhegQtAcVT2qDI2gLIzmEhsbJ6EYxtjCqxpFPQWSPItufGDzi6ON8vN_DYUO91X-gB7HJhNyLTQZqbk_aMro4OG5piUHBGAzrZYomCzShU0wOdHdFpiIQQx5bmJRDywN67aHGLkLkAcd0wXQkB_imxsmgKPbLsxlB0WKnLcKn08ePp6fz8-fz8-nw65OQ2zchdyDkdvkFbXmzOvP14fVw_-X5sLxw_v3Dl_PTh8Pn3x6XoyPkWZYJuYtjlnkLO3BRlmcVCAzRy0ITD9r_VGTw36E9z5z6gYJpF5fViBYU-Ek18YYv8T42jxr984BFv0Wei_LRLw21eNNkMUL02s1js0HA4Uiv2EZeOnLgaURwqDzZ9MZbo6yQZXS4bUFFO8yu0PYHX0CrvaoNguYbKs1QU4TmYURQYIhv3Ts4wRT4zkbKUfiXPXlAe6VG-9mx1yW-6_i_RRRy-wMd_y7le4v5uKmCOswkk4MTfA2e7xmM0XGlkAfFSwZ4URyTtiraXbFTCVb5psw3Mltlu2Soum2Wd3m3XmO5ysp6W2NZ1nnZblayy7FeJ7qSmZS5lHkeYe1Sua5xuy2VlFLmqtiKVYaj0iY15nVMyfWJ9j5gtd5tilViVI3G3_LRVbHooQ69F6vMRHDfX2PNBqv32SKKPXy6z4sYVTGZ4sUhanQ1H7ZwcWT7JDhTDczT_OXJo5DHXvMQ6rShUchjnHb9e_grGI8zYi_kcQb9ZwAAAP__SaHWXg">