[clang] [clang-format] Propagate `LeadingEmptyLinesAffected` when joining lines (PR #146761)

Eric Li via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 2 12:50:27 PDT 2025


================
@@ -988,6 +988,8 @@ class LineJoiner {
     assert(!B.First->Previous);
     if (B.Affected)
       A.Affected = true;
+    else if (B.LeadingEmptyLinesAffected && A.Last->Children.empty())
----------------
tJener wrote:

Done.

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


More information about the cfe-commits mailing list