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

    <tr>
        <th>Summary</th>
        <td>
            Clang-format: Incorrect indentation when using WhitespaceSensitiveMacros
        </td>
    </tr>

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

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

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

<pre>
    clang-format version 14.0.6 incorrectly indents lines that follow a macro listed in WhitespaceSensitiveMacros
Example input:

```
void test()
{
  test( TEST( 1 ),
        TEST(2), TEST(3),
        TEST(4),
        test(),
        TEST(5) );  
}
```

.clang-format file:

```
Language: Cpp
ColumnLimit: 0
WhitespaceSensitiveMacros: [TEST]
```

Result of running clang-format:
```
void test() {
  test(TEST( 1 ),
             TEST(2), TEST(3),
                           TEST(4),
                                test(),
                                TEST(5) );

```
Indentation on the line following TEST is shifted to match the opening parenthesis plus white space (if present).
I'd rather expect indenting similar to the input file
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVE1vnDAQ_TVwGQWB-Vg4cEg2qRQpvTSRevbCAG4NRrbZJP--Yz6URN2lqmWBh3meefab4aTq97KSfGhvGqV7buGM2gg1QJQEYZCBGCqlNVZWvtO6xsEakGJAA7YjdKOkVK_AoeeVVuQxFmsCws9OWDQjr_AZByOsOON3BzFeeO-Ftw9vvB8lEnKcrBffLl_XZxauczbPStRAsazHco8VK-Zwtyxgc8HLw_OLe0fgUOy4-Zexetni28x4B5pc8n3icWVbSr6ZQXwHsJG9v3iy5Rl8uf5GSNy_jydCT7x1KDiO4_LxqOTUD0-iF-42YYVeF4EwXno3U073yP1AM0kLqgE9DYMYWvjM9oPormTwt1r7Yv2vYhfGnojXxo64_0jzSfQd5R7n_uHWtRdN2-HcSmsTuct14UAYMJ1oXCNZRY1lq27GqhFnBUauKUyHhoCjnAy8Oplh1plI5KKBUaMhDDEK1tQeO9SgOW3TgG8jNfTazi6iobqRXLt0LtHclHMl-lhGWRYlcZYlzK_LuC7igvtWWInl8WslwOP2q1gjLwd97XCAybg0V8vRn7QsO2tHV5ge-0azFbabTkGlejKkPG-vm1GrX5SDTGHMhIYW6SFOC78rsahZWhySPM9YdmgqTJsDZ1VepEXEc577kp9QmpIqn6reFyULGQtzlkZJFCYsqHIyYxbVNQ_TOkMvCbHnQgYucaB06-ty5nCaWkNO97czH05ujGgHxC0-n2yndGlVj79t6890y5nrH5K8i-U">