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

Alibek Omarov via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 29 15:45:29 PDT 2024


a1batross wrote:

I have built clang-format with these changes. On current commit, it sadly doesn't remove the space in these patterns:
```c
memset( g_used, 0, sizeof( g_used ) );
if( FBitSet( ent->curstate.effects, EF_INVLIGHT ) )
```

After reverting last commit, it got somewhat closer:
```c
memset(g_used, 0, sizeof( g_used ));
if(FBitSet( ent->curstate.effects, EF_INVLIGHT ))
```

But is there a way to configure it like this?
```c
memset( g_used, 0, sizeof( g_used ))
if( FBitSet( ent->curstate.effects, EF_INVLIGHT ))
```

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


More information about the cfe-commits mailing list