Issue 55428
Summary clang-format: Add options for SpacesInParentheses
Labels new issue
Assignees
Reporter Hedede
    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?

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to