|
@@ -2429,6 +2429,8 @@ unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line,
|
|
if (Left.is(TT_JavaAnnotation))
|
|
if (Left.is(TT_JavaAnnotation))
|
|
return 50;
|
|
return 50;
|
|
|
|
|
|
|
|
+ if (Left.is(TT_UnaryOperator))
|
|
|
|
+ return 60;
|
|
if (Left.isOneOf(tok::plus, tok::comma) && Left.Previous &&
|
|
if (Left.isOneOf(tok::plus, tok::comma) && Left.Previous &&
|
|
Left.Previous->isLabelString() &&
|
|
Left.Previous->isLabelString() &&
|
|
(Left.NextOperator || Left.OperatorIndex != 0))
|
|
(Left.NextOperator || Left.OperatorIndex != 0))
|