================
@@ -778,6 +778,48 @@ void BreakableBlockComment::reflow(unsigned LineIndex,
void BreakableBlockComment::adaptStartOfLine(
unsigned LineIndex, WhitespaceManager &Whitespaces) const {
if (LineIndex == 0) {
+ StringRef Text = tokenAt(LineIndex).TokenText;
+ if (Style.SpacesInComments != FormatStyle::SICS_Leave &&
+ Lines.size() == 1 && Text.size() >= 4) {
----------------
HazardyKnusperkeks wrote:
Any particular reason for the `Lines.size() == 1` check?
https://github.com/llvm/llvm-project/pull/204727
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits