Issue 179280
Summary [clang-format] SpaceBeforeParens function call site regression
Labels clang-format
Assignees
Reporter sudara
    `SpaceBeforeParens: NonEmptyParentheses` seems to have a regression which makes it no longer possible to format according to the JUCE framework's C++ coding guidelines, specifically:

> Always put a space before an open parenthesis that contains text - e.g. foo (123);

If this change is intentional, then please take this as a feature request for a sub-option to restore the function call site behavior from version 21 and before — there is a whole ecosystem out there on this code style that are going to be stuck otherwise... 

## Expected functionality:

The space between the function name and open parenthesis is preserved (version 21 and prior behave this way)

```
echo 'foo ("bar");' | clang-format 
foo ("bar");
```

## Current functionality 

The space before the open parenthesis is removed (clang-format version 22.0.0git in latest CLion)
```
echo 'foo ("bar");' | clang-format 
foo("bar");
```


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to