forked from qt-creator/qt-creator
ClangFormat: Reduce dummy text to minimum size
... and tweak continuation dummy text to fix the indentation for the line with existing text inside parenthesis. Change-Id: Iaebd2f58823fcbeed24bb7e47769af53261c18ca Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -224,18 +224,18 @@ int forceIndentWithExtraText(QByteArray &buffer,
|
||||
case CharacterContext::Unknown:
|
||||
QTC_ASSERT(false, return 0;);
|
||||
case CharacterContext::AfterComma:
|
||||
dummyText = "&& a,";
|
||||
dummyText = "a,";
|
||||
break;
|
||||
case CharacterContext::NewStatement:
|
||||
if (!closingBraceBlock)
|
||||
dummyText = "a;a;";
|
||||
dummyText = "a;";
|
||||
break;
|
||||
case CharacterContext::Continuation:
|
||||
if (closingBraceBlock)
|
||||
break;
|
||||
Q_FALLTHROUGH();
|
||||
case CharacterContext::LastAfterComma:
|
||||
dummyText = "&& a";
|
||||
dummyText = "& a &";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user