@@ -444,7 +444,7 @@ bool ContinuationIndenter::mustBreak(const LineState &State) {
444
444
}
445
445
446
446
// If the template declaration spans multiple lines, force wrap before the
447
- // function/class declaration
447
+ // function/class declaration.
448
448
if (Previous.ClosesTemplateDeclaration && CurrentState.BreakBeforeParameter &&
449
449
Current.CanBreakBefore ) {
450
450
return true ;
@@ -552,7 +552,7 @@ bool ContinuationIndenter::mustBreak(const LineState &State) {
552
552
553
553
// If the return type spans multiple lines, wrap before the function name.
554
554
if (((Current.is (TT_FunctionDeclarationName) &&
555
- // Don't break before a C# function when no break after return type
555
+ // Don't break before a C# function when no break after return type.
556
556
(!Style.isCSharp () ||
557
557
Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None) &&
558
558
// Don't always break between a JavaScript `function` and the function
@@ -1308,7 +1308,7 @@ static bool hasNestedBlockInlined(const FormatToken *Previous,
1308
1308
if (Previous->ParameterCount > 1 )
1309
1309
return true ;
1310
1310
1311
- // Also a nested block if contains a lambda inside function with 1 parameter
1311
+ // Also a nested block if contains a lambda inside function with 1 parameter.
1312
1312
return Style.BraceWrapping .BeforeLambdaBody && Current.is (TT_LambdaLSquare);
1313
1313
}
1314
1314
@@ -1530,7 +1530,7 @@ void ContinuationIndenter::moveStatePastFakeLParens(LineState &State,
1530
1530
Previous->is (TT_ConditionalExpr))) &&
1531
1531
!Newline) {
1532
1532
// If BreakBeforeBinaryOperators is set, un-indent a bit to account for
1533
- // the operator and keep the operands aligned
1533
+ // the operator and keep the operands aligned.
1534
1534
if (Style.AlignOperands == FormatStyle::OAS_AlignAfterOperator)
1535
1535
NewParenState.UnindentOperator = true ;
1536
1536
// Mark indentation as alignment if the expression is aligned.
@@ -1722,7 +1722,7 @@ void ContinuationIndenter::moveStatePastScopeOpener(LineState &State,
1722
1722
1723
1723
if (Style.BraceWrapping .BeforeLambdaBody && Current.Next != nullptr &&
1724
1724
Current.is (tok::l_paren)) {
1725
- // Search for any parameter that is a lambda
1725
+ // Search for any parameter that is a lambda.
1726
1726
FormatToken const *next = Current.Next ;
1727
1727
while (next != nullptr ) {
1728
1728
if (next->is (TT_LambdaLSquare)) {
@@ -2542,7 +2542,7 @@ ContinuationIndenter::breakProtrudingToken(const FormatToken &Current,
2542
2542
}
2543
2543
2544
2544
unsigned ContinuationIndenter::getColumnLimit (const LineState &State) const {
2545
- // In preprocessor directives reserve two chars for trailing " \"
2545
+ // In preprocessor directives reserve two chars for trailing " \".
2546
2546
return Style.ColumnLimit - (State.Line ->InPPDirective ? 2 : 0 );
2547
2547
}
2548
2548
0 commit comments