================
@@ -986,7 +986,7 @@ class LineJoiner {
void join(AnnotatedLine &A, const AnnotatedLine &B) {
assert(!A.Last->Next);
assert(!B.First->Previous);
- if (B.Affected)
+ if (B.Affected || (B.LeadingEmptyLinesAffected &&
A.Last->Children.empty()))
----------------
owenca wrote:
```suggestion
if (B.Affected || B.LeadingEmptyLinesAffected)
```
Would that be enough?
https://github.com/llvm/llvm-project/pull/146761
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits