=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>,
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -873,9 +894,11 @@ class LineJoiner {
         return 1;
       } else if (Limit != 0 && !Line.startsWithNamespace() &&
                  !startsExternCBlock(Line)) {
-        // We don't merge short records.
-        if (isRecordLBrace(*Line.Last))
+        // Merge short records only when requested.
+        if (isRecordLBrace(*Line.Last) &&
+            Style.AllowShortRecordOnASingleLine < FormatStyle::SRS_Always) {
----------------
owenca wrote:

```suggestion
            Style.AllowShortRecordOnASingleLine != FormatStyle::SRS_Always) {
```

https://github.com/llvm/llvm-project/pull/154580
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to