[all-commits] [llvm/llvm-project] 0631ac: [clang-format] Remove the blank line in the functi...
sstwcw via All-commits
all-commits at lists.llvm.org
Sun May 31 13:53:21 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0631ac764a565ed13283e3c7b70a746d0a8018cc
https://github.com/llvm/llvm-project/commit/0631ac764a565ed13283e3c7b70a746d0a8018cc
Author: sstwcw <su3e8a96kzlver at posteo.net>
Date: 2026-05-31 (Sun, 31 May 2026)
Changed paths:
M clang/lib/Format/DefinitionBlockSeparator.cpp
M clang/unittests/Format/DefinitionBlockSeparatorTest.cpp
Log Message:
-----------
[clang-format] Remove the blank line in the function try block (#199086)
old with config `{SeparateDefinitionBlocks: Always}`
```C++
void foo() try {
// do something
} catch (const std::exception &e) {
// handle exception
}
```
new
```C++
void foo() try {
// do something
} catch (const std::exception &e) {
// handle exception
}
```
Fixes #58183.
With the option `SeparateDefinitionBlocks` set, the program previously
added a blank line in the catch block. Now the problem is fixed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list