[clang] [clang-format] Add KeepEmptyLines.AtEndOfBlock option (PR #224223)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 29 12:46:59 PDT 2026


================
@@ -25609,6 +25611,51 @@ TEST_F(FormatTest, KeepEmptyLinesAtEOF) {
   verifyFormat(Code, "int i;\n\n\n", Style);
 }
 
+TEST_F(FormatTest, KeepEmptyLinesAtStartOfBlock) {
----------------
HazardyKnusperkeks wrote:

`AtStartOfBlock` is by default `true`, so any test which does not set it to `false` tests it in some way or another.

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


More information about the cfe-commits mailing list