Issue 58183
Summary [clang-format] SeparateDefinitionBlocks separates function-try-blocks
Labels
Assignees
Reporter steve-numeus
    With `SeparateDefinitionBlocks: Always` the following function will be incorrectly formatted

```cpp
void foo()
try
{
    // do something
}
catch (const std::exception& e)
{
    // handle exception
}
```

to


```cpp
void foo()
try
{
    // do something
}
                                               // <-- note extra space inserted here
catch (const std::exception& e)
{
    // handle exception
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to