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

    <tr>
        <th>Summary</th>
        <td>
            clang-format: Add options for SpacesInParentheses
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    I am working on a project where function declarations and functions calls are formatted differently:
`void foo( Arg x, Arg y ); // decl`
`foo(a, b) // call`

>From what I could gather, `SpacesInParentheses` doens't support differentiation. There are `SpacesInCStyleCastParentheses`, `SpacesInConditionalStatement`, but that' snot enough.

I suggest to add something analogous to `BraceWrapping`

- FunctionDecl (maybe also MemberFunctionDecl? I don't think it's needed though) `void foo(A a)`
- FunctionCall `foo(x)`
- FunctionLikeMacroDecl `#define FOO( x )`
- FunctionLikeMacroCall `FOO(x)`
- TemplateDecl `template<typename T>`
- TemplateInstantiation `Foo<T>`
- ConditionalStatement
- Operator (sizeof, alignof...)
- Decltype
- Expression `( a + b )`
- CStyleCast
- ... Maybe more?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFVE1vozAQ_TXmMioiUFpy4JCkjTbSVl2plfZs8ADeGhvZpk321--YhKaNIm0UBex5M-_NVyojDuUOeA8fxr5J3YLRwGGw5g_WHj46tAjNqGsvySCwVtzy8O6Aa_FpcVBzpeguoI3tufcoQMimIX_t1YFlK5Y8sGTF7pJ3I8nTGJYWsLIt7Fm6mV4OwNIly9b02NJ3oiP8p-PRhwd4RcgZFqjPsOl3aw1l1HEPO6jNqAS03FMuwZWgLwOv0e30Lx7UdejQ0S0Ig9qx9N6DG4fBWH_OQE5Jx_A6FSSk-SXM5sUfFG64898DXrBtjBYyhOHqxXOPPUFPqGr04EkukYPTxgNqM7Zd_DWnHalqW3SENMCFAGd69F3oGaeQpjWjCyYKubbE-NvyYSDrRWluYHtq2gOVl2pY9PxQUU7KGXjCvkL7FcCyLdVQGD3VJdC9gQw6HWhEQV32XZA69eNbb1fAQztn9jPvhvoFn-3cXwf9lG_4xGtrjipDmTKBjdQI2-fnMDp7-I_nzHPEX_C8Yj8oasIc3p_OLNv4w4Ca9wivLHu84rLTzvN5JCYCSiTbXKCvdvtkex6QtsjYUH0n_6JpwhBwJVttmjiOg9QTNOgLgubz436w6NyJOdSBU5Q1VBfVOM_kfENx4WlqdW8s5bk9GiJRZmKZLXnkpVdY0obr9ua4xLS1sKJJM8NxyekWruxONFpVdt4PLqz5tJSt9N1YxbXp6aDU-_y4Of2z0FE6N9KapNs8v02LqCuxSIskqUSS1wuRFEuBRZU0VYaibpaYYKR4hcqVLF-zNNX4AVMIemf5QyTLNEnTJF9ki8UiX9zFSVHc0UfcL4v6ts4Tdptgz6WKg47Y2Day5SSpGltHRiWdd2cjpyK3NOITHcXnIw26LX-EmcdoYi4n5f8ANx2odw">