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

    <tr>
        <th>Summary</th>
        <td>
            Grouping Parentheses
        </td>
    </tr>

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

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

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

<pre>
    What do you think about adding `GroupingParentheses` to those options?

That is, `GroupingParentheses: false` would produce:

``` c++
    if( (x + 5) == 7 ) { … }
    int x = (((3 + y) * (j - 5)) + (k * k));
```

Currently, when given:

``` 
SpacesInCStyleCastParentheses: true
SpacesInConditionalStatement: true
SpacesInContainerLiterals: false
SpacesInParentheses: true
SpacesInParens: Custom
SpacesInParensOptions:
  ExceptDoubleParentheses: false
  InConditionalStatements: true
  InCStyleCasts: true
  InEmptyParentheses: false
  Other: true
```

clang-format generates the far-too-spacious (IMO):

``` c++
    if( ( x + 5 ) == 7 ) { … }
    int x = ( ( ( 3 + y ) * ( j - 5 ) ) + ( k * k ) );
```

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycVN1q4zwQfRr5ZkhQ5L_4whdO0nwUvqULLey1bE9sNYpkpFHbvP1iJ2lDmy7LgkLwzJmjmTkHSe9VZxBLlq5YuolkoN66ciPd_unYoYtq2x7LX70kaC0cbQDqldmDrG0gkG2rTAcs4_85GwZlup_SoaEePXqWcSAL1FuPYAdS1ngWbxmvGK-eRkblmVh_Vx1XsJPa40jzaoNuYXC2DQ2yuDpxsIyfDjRMrMbDKwAAtWNiCUws34CJFaRMFMDiDYs3kMP0ka-A3Qm25KzKgOWbS6EheBuhY_HpxBPFcaoS1Rh_htlEeQqtxtB-yu1PQRavrns7tboObpxMH8eBX3s00KkXNDdGYbx6HGSD_t6sH-mocS09fdoLuYDXOGtaNa5X6keShAc0dBtGUhl0_ytCJ_XVij9Af75pyk6JdfBkD19SDxeZq2mld28NDrSxodZ4U9sRdHuA6-snzPsyPmfuDgMdv2V_oB7dVcUnYRotTTfbWXeQBB0adJLQA_UIO-lmZO3MD7JRNvhR6fsfD5PEf-tAOFsQ_s2D77-zDeHKhzAZ8Rx5tyKcvXiJf3Vj1JZxW8SFjLBc5EmWpotlGkd9icuiyOusyKWUabrEYsd3dVokSbGIeYa7SJWCi5SnPFvkizwWc4FNnBRJKjEtmqRJWcLxIJWea_1ymFvXRcr7gOUiXuZCRFrWqP3lpXHliJrVofMs4Vp58h91pEhjeXkW4ErdKDhd9kTDZDKxZWLbKepDPW_sgYntSHH-mw3OPmNDTGynPjwT23MrL6X4HQAA___r4XeU">