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:
Ivan Donchevskii
2019-03-12 10:49:49 +01:00
parent 5333331362
commit d7eeb0bd90
2 changed files with 16 additions and 3 deletions

View File

@@ -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;
}
}