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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 12:58:58 PDT 2026


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

Do we not have already tests for that?

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


More information about the cfe-commits mailing list