[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


================
@@ -170,6 +170,7 @@ TEST_F(FormatTest, RemovesEmptyLines) {
   CustomStyle.BreakBeforeBraces = FormatStyle::BS_Custom;
   CustomStyle.BraceWrapping.AfterNamespace = true;
   CustomStyle.KeepEmptyLines.AtStartOfBlock = false;
+  CustomStyle.KeepEmptyLines.AtEndOfBlock = false;
----------------
HazardyKnusperkeks wrote:

The presence suggests the executed test depends on that value. If it is relevant, that the option is set to `false` then `ASSERT_EQ` on that.

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


More information about the cfe-commits mailing list