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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Incorrectly formatted macro
        </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>
    ```C
$ cat foo.c 
#define foo(i, j)     (i - bar(j))
#define foo(i, j) ((i) - bar(j))
$ clang-format --version
clang-format version 17.0.6
$ clang-format foo.c    
#define foo(i, j) (i - bar(j))
#define foo(i, j) ((i)-bar(j))
$ clang-format-18 --version
Debian clang-format version 18.0.0 (++20240119100743+cd05ade13a66-1~exp1~20240119220916.1830)
$ clang-format-18 foo.c 
#define foo(i, j) (i - bar(j))
#define foo(i, j) ((i)-bar(j))
```
Shouldn't the proper output be the following?
```C
#define foo(i, j) (i - bar(j))
#define foo(i, j) ((i) - bar(j))
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VE1vnDAQ_TXDxQLZg_nwgUM2K6Se-wuMscGRFyPbpM0lv71iyapN1DSRqiBLyG94z-8xDDJGOy1ad1CdoDpnckuzD90aHvJs8ONTBzU91j3QM9A7QE6UTMR4Xyhyw8pRG7voHQVsLeA9eQAUZL92gORkkAGw3dF9fcADbI-9eI_JiXJymXLjw0UmkuePOkTrl6P-qvZSIawpaFG_I3Dk2e1-bO0_4uSfCJOz9m2esx6sXMjfY7UFLehxxgnwhBQ5ZUwwShteAp7USCs5albKus7Zs_65sufbQ4hUsLpgbUn_6edz7f6Cd3P7_I7t99lvblwAm0TSrMka_KoD8Vtat0QGfQWNd87_sMsEZf9G5f5rE7zDvJ2ejV05ilLITHesoZXAusQmmzvBG1NXozCcN-3AGZcloqEKDadUVTKz3dEwRIZYYVOgMBUzVFWmGWXTSuBUX6R1hXOPl8KHKbMxbrprWlFXmZODdvE644h_thYQ96kP3U7Lh22KwKmzMcXfQskmd_0_vCJWZ_JtUT4ErZJ7Igea9EguUgWfbcF1c0prhPIOsAfsJ5vmbSiUvwD2u_jLLV-Df9AqAfZXyxGwv7r-FQAA___ezkn4">