Index: clang/lib/Format/ContinuationIndenter.cpp =================================================================== --- clang/lib/Format/ContinuationIndenter.cpp +++ clang/lib/Format/ContinuationIndenter.cpp @@ -444,7 +444,7 @@ } // If the template declaration spans multiple lines, force wrap before the - // function/class declaration + // function/class declaration. if (Previous.ClosesTemplateDeclaration && CurrentState.BreakBeforeParameter && Current.CanBreakBefore) { return true; @@ -552,7 +552,7 @@ // If the return type spans multiple lines, wrap before the function name. if (((Current.is(TT_FunctionDeclarationName) && - // Don't break before a C# function when no break after return type + // Don't break before a C# function when no break after return type. (!Style.isCSharp() || Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None) && // Don't always break between a JavaScript `function` and the function @@ -1305,7 +1305,7 @@ if (Previous->ParameterCount > 1) return true; - // Also a nested block if contains a lambda inside function with 1 parameter + // Also a nested block if contains a lambda inside function with 1 parameter. return Style.BraceWrapping.BeforeLambdaBody && Current.is(TT_LambdaLSquare); } @@ -1525,7 +1525,7 @@ Previous->is(TT_ConditionalExpr))) && !Newline) { // If BreakBeforeBinaryOperators is set, un-indent a bit to account for - // the operator and keep the operands aligned + // the operator and keep the operands aligned. if (Style.AlignOperands == FormatStyle::OAS_AlignAfterOperator) NewParenState.UnindentOperator = true; // Mark indentation as alignment if the expression is aligned. @@ -1717,7 +1717,7 @@ if (Style.BraceWrapping.BeforeLambdaBody && Current.Next != nullptr && Current.is(tok::l_paren)) { - // Search for any parameter that is a lambda + // Search for any parameter that is a lambda. FormatToken const *next = Current.Next; while (next != nullptr) { if (next->is(TT_LambdaLSquare)) { @@ -2537,7 +2537,7 @@ } unsigned ContinuationIndenter::getColumnLimit(const LineState &State) const { - // In preprocessor directives reserve two chars for trailing " \" + // In preprocessor directives reserve two chars for trailing " \". return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); }