[clang] [clang-format] Add SpacesInParensOption for filtering repeated parens (PR #77522)

Alibek Omarov via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 4 00:10:54 PDT 2024


a1batross wrote:

> I saw some comments on this. Looks like some were deleted maybe. This is still in my queue, but unclear when I'll get back to it.

Yeah, sorry, I posted a comment here but decided it was a bit irrelevant. :)

But going to ask anyway then. Can this setting remove the space from repeated parentheses pattern like this?

```c
foo( (void *)buf, size );
```

to:

```c
foo((void *)buf, size );
```

So it does remove it on one side where the C-style cast parentheses, but doesn't on the other side?

https://github.com/llvm/llvm-project/pull/77522


More information about the cfe-commits mailing list